Removing workspaceLoaded check from loadDeepShortcuts()
am: 4869bf3f74
Change-Id: I1516a214df024f5e9b9387671cfadd3697384ede
This commit is contained in:
@@ -1777,17 +1777,15 @@ public class LauncherModel extends BroadcastReceiver
|
||||
}
|
||||
|
||||
private void loadDeepShortcuts() {
|
||||
if (!mModelLoaded) {
|
||||
sBgDataModel.deepShortcutMap.clear();
|
||||
DeepShortcutManager shortcutManager = DeepShortcutManager.getInstance(mContext);
|
||||
mHasShortcutHostPermission = shortcutManager.hasHostPermission();
|
||||
if (mHasShortcutHostPermission) {
|
||||
for (UserHandle user : mUserManager.getUserProfiles()) {
|
||||
if (mUserManager.isUserUnlocked(user)) {
|
||||
List<ShortcutInfoCompat> shortcuts =
|
||||
shortcutManager.queryForAllShortcuts(user);
|
||||
sBgDataModel.updateDeepShortcutMap(null, user, shortcuts);
|
||||
}
|
||||
sBgDataModel.deepShortcutMap.clear();
|
||||
DeepShortcutManager shortcutManager = DeepShortcutManager.getInstance(mContext);
|
||||
mHasShortcutHostPermission = shortcutManager.hasHostPermission();
|
||||
if (mHasShortcutHostPermission) {
|
||||
for (UserHandle user : mUserManager.getUserProfiles()) {
|
||||
if (mUserManager.isUserUnlocked(user)) {
|
||||
List<ShortcutInfoCompat> shortcuts =
|
||||
shortcutManager.queryForAllShortcuts(user);
|
||||
sBgDataModel.updateDeepShortcutMap(null, user, shortcuts);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user