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

Commit 219d0487 authored by Hyunyoung Song's avatar Hyunyoung Song
Browse files

Widgets should also be bound when binding all apps.

b/20915830

Change-Id: I772156f8a8d361f485fb4d7edc447c2cee2edf23
parent 067e5e01
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");