diff options
author | Winson Chung <winsonc@google.com> | 2011-03-02 11:57:29 -0800 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-03-02 11:58:03 -0800 |
commit | c6d20009ce44def4d4c6d3a747ab64b62ff827e2 (patch) | |
tree | 8bba4ba35877aa21bdef97ca18748055a35cb124 /src/com/android | |
parent | e708c5249b26978057acb9370cbfb8f6f747f5b8 (diff) | |
download | android_packages_apps_Trebuchet-c6d20009ce44def4d4c6d3a747ab64b62ff827e2.tar.gz android_packages_apps_Trebuchet-c6d20009ce44def4d4c6d3a747ab64b62ff827e2.tar.bz2 android_packages_apps_Trebuchet-c6d20009ce44def4d4c6d3a747ab64b62ff827e2.zip |
Fixing issue where search icons were only loaded after binding instead of at creation.
Change-Id: Id422966e3b6dc0aca9a7df942fb835349cae6525
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/launcher2/Launcher.java | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index 9cea69b49..039e76bae 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -418,15 +418,12 @@ public final class Launcher extends Activity // If we have a saved version of these external icons, we load them up immediately if (LauncherApplication.isScreenXLarge()) { - if (sGlobalSearchIcon != null) { - updateGlobalSearchIcon(sGlobalSearchIcon); - } - if (sVoiceSearchIcon != null) { - updateVoiceSearchIcon(sVoiceSearchIcon); - } - if (sAppMarketIcon != null) { - updateAppMarketIcon(sAppMarketIcon); + if (sGlobalSearchIcon == null || sVoiceSearchIcon == null || sAppMarketIcon == null) { + updateIconsAffectedByPackageManagerChanges(); } + updateGlobalSearchIcon(sGlobalSearchIcon); + updateVoiceSearchIcon(sVoiceSearchIcon); + updateAppMarketIcon(sAppMarketIcon); } } |