summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorSungmann Cho <sungmann.cho@navercorp.com>2013-11-11 13:01:28 +0900
committerSungmann Cho <sungmann.cho@navercorp.com>2013-11-11 13:32:39 +0900
commit6bc5c74102a743b29cc34f7d9aa7079d5b4bba10 (patch)
tree67a1aa6c2ef1746676e4b088dc0b45e881f69cc0 /src/com
parent90883e666eb7675b9bc6d852cb732b65196781cf (diff)
downloadpackages_apps_Browser-6bc5c74102a743b29cc34f7d9aa7079d5b4bba10.tar.gz
packages_apps_Browser-6bc5c74102a743b29cc34f7d9aa7079d5b4bba10.tar.bz2
packages_apps_Browser-6bc5c74102a743b29cc34f7d9aa7079d5b4bba10.zip
Fix the problem that the favicons on the history page are shown ramdomly when the page is scrolled.
Steps to reproduce: 1. Visit some URLs to fill the history page. 2. Go to the history page. 3. Scroll up and down repeatedly. What happened: The favicons on the left side of the history page are shown ramdomly. Change-Id: I243ec67899b13c5482e1503f7eab23dd9a5aa1f5 Signed-off-by: Sungmann Cho <sungmann.cho@navercorp.com>
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/browser/BrowserHistoryPage.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserHistoryPage.java b/src/com/android/browser/BrowserHistoryPage.java
index 9493b85e8..930c41359 100644
--- a/src/com/android/browser/BrowserHistoryPage.java
+++ b/src/com/android/browser/BrowserHistoryPage.java
@@ -658,6 +658,8 @@ public class BrowserHistoryPage extends Fragment
if (data != null) {
item.setFavicon(BitmapFactory.decodeByteArray(data, 0,
data.length));
+ } else {
+ item.setFavicon(null);
}
item.setIsBookmark(cursor.getInt(HistoryQuery.INDEX_IS_BOOKMARK) == 1);
return item;