From c1cf63a4c15ad81f4d19e10574e9dba91f0b83e4 Mon Sep 17 00:00:00 2001 From: Patrick Scott Date: Tue, 9 Mar 2010 16:02:08 -0500 Subject: Request icons in the background. BrowserBookmarksAdapter does not need to request bookmark icons as most of the bookmarks have up-to-date icons. We still need to request all icons on start up because a new icon may be loaded as a result of clicking a history items. Move the icon request to a background thread to not block the ui thread on large db lookups. Remove MostVisitedActivity as it is no longer used. Bug: 2496872 Change-Id: I378dce8fdb7e825da96594cd31b720ea24758af1 --- src/com/android/browser/BrowserHistoryPage.java | 3 +++ 1 file changed, 3 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 7c47460a6..23080f86b 100644 --- a/src/com/android/browser/BrowserHistoryPage.java +++ b/src/com/android/browser/BrowserHistoryPage.java @@ -135,8 +135,11 @@ public class BrowserHistoryPage extends ExpandableListActivity { } mDisableNewWindow = getIntent().getBooleanExtra("disable_new_window", false); + + // Register to receive icons in case they haven't all been loaded. CombinedBookmarkHistoryActivity.getIconListenerSet() .addListener(mIconReceiver); + Activity parent = getParent(); if (null == parent || !(parent instanceof CombinedBookmarkHistoryActivity)) { -- cgit v1.2.3