Merge "Showing the shortcuts in the disabled state and removing ti from the menu when its disabled" into ub-launcher3-calgary
This commit is contained in:
commit
55f5bd730c
5 files changed
+28
-7
No files matched your search
@@ -2842,9 +2842,11 @@ public class LauncherModel extends BroadcastReceiver
|
||||
|
||||
// Now add the new shortcuts to the map.
|
||||
for (ShortcutInfoCompat shortcut : shortcuts) {
|
||||
ComponentKey targetComponent
|
||||
= new ComponentKey(shortcut.getActivity(), shortcut.getUserHandle());
|
||||
mBgDeepShortcutMap.addToList(targetComponent, shortcut.getId());
|
||||
if (shortcut.isEnabled()) {
|
||||
ComponentKey targetComponent
|
||||
= new ComponentKey(shortcut.getActivity(), shortcut.getUserHandle());
|
||||
mBgDeepShortcutMap.addToList(targetComponent, shortcut.getId());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user