Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14706b1e authored by Hyunyoung Song's avatar Hyunyoung Song Committed by Android (Google) Code Review
Browse files

Merge "Widgets should also be bound when binding all apps. b/20915830" into ub-launcher3-burnaby

parents 4e267f4c 219d0487
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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");