diff options
author | Patrick Scott <phanna@android.com> | 2010-03-09 16:02:08 -0500 |
---|---|---|
committer | Patrick Scott <phanna@android.com> | 2010-03-11 10:19:12 -0500 |
commit | c1cf63a4c15ad81f4d19e10574e9dba91f0b83e4 (patch) | |
tree | 3233b47f7524012efdfe7e48a5756711e21f11fe /src/com/android/browser/BrowserHistoryPage.java | |
parent | f739271c1cf974a1057a9a8a3f42b89937836228 (diff) | |
download | packages_apps_Browser-c1cf63a4c15ad81f4d19e10574e9dba91f0b83e4.zip packages_apps_Browser-c1cf63a4c15ad81f4d19e10574e9dba91f0b83e4.tar.gz packages_apps_Browser-c1cf63a4c15ad81f4d19e10574e9dba91f0b83e4.tar.bz2 |
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
Diffstat (limited to 'src/com/android/browser/BrowserHistoryPage.java')
-rw-r--r-- | src/com/android/browser/BrowserHistoryPage.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserHistoryPage.java b/src/com/android/browser/BrowserHistoryPage.java index 7c47460..23080f8 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)) { |