diff options
author | Hyunyoung Song <hyunyoungs@google.com> | 2015-05-07 19:54:09 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-05-07 19:54:09 +0000 |
commit | 14706b1e641ef8e307ab9e8df27924c2a3f0cf24 (patch) | |
tree | 21a2d3a97ae1a5523330525eeeff8629d89319de /src/com | |
parent | 4e267f4cdca3ec52aa55982560551ea766adf9be (diff) | |
parent | 219d048711a2c26b7b00f3a0b1d66703d135519a (diff) | |
download | android_packages_apps_Trebuchet-14706b1e641ef8e307ab9e8df27924c2a3f0cf24.tar.gz android_packages_apps_Trebuchet-14706b1e641ef8e307ab9e8df27924c2a3f0cf24.tar.bz2 android_packages_apps_Trebuchet-14706b1e641ef8e307ab9e8df27924c2a3f0cf24.zip |
Merge "Widgets should also be bound when binding all apps. b/20915830" into ub-launcher3-burnaby
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/launcher3/LauncherModel.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/launcher3/LauncherModel.java b/src/com/android/launcher3/LauncherModel.java index 7efdf3284..e81c8c285 100644 --- a/src/com/android/launcher3/LauncherModel.java +++ b/src/com/android/launcher3/LauncherModel.java @@ -2810,6 +2810,8 @@ public class LauncherModel extends BroadcastReceiver } else { mHandler.post(r); } + loadAndBindWidgetsAndShortcuts(mApp.getContext(), tryGetCallbacks(oldCallbacks), + false /* refresh */); } private void loadAllApps() { @@ -2871,8 +2873,6 @@ public class LauncherModel extends BroadcastReceiver final Callbacks callbacks = tryGetCallbacks(oldCallbacks); if (callbacks != null) { callbacks.bindAllApplications(added); - loadAndBindWidgetsAndShortcuts(mApp.getContext(), callbacks, - true /* refresh */); if (DEBUG_LOADERS) { Log.d(TAG, "bound " + added.size() + " apps in " + (SystemClock.uptimeMillis() - bindTime) + "ms"); @@ -2885,6 +2885,8 @@ public class LauncherModel extends BroadcastReceiver // Cleanup any data stored for a deleted user. ManagedProfileHeuristic.processAllUsers(profiles, mContext); + loadAndBindWidgetsAndShortcuts(mApp.getContext(), tryGetCallbacks(oldCallbacks), + true /* refresh */); if (DEBUG_LOADERS) { Log.d(TAG, "Icons processed in " + (SystemClock.uptimeMillis() - loadTime) + "ms"); |