From 6bc5c74102a743b29cc34f7d9aa7079d5b4bba10 Mon Sep 17 00:00:00 2001 From: Sungmann Cho Date: Mon, 11 Nov 2013 13:01:28 +0900 Subject: 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 --- src/com/android/browser/BrowserHistoryPage.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/com/android/browser/BrowserHistoryPage.java') 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; -- cgit v1.2.3