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:
Sunny Goyal authored and Android (Google) Code Review committed 2016-07-28 19:23:29 +00:00
commit 55f5bd730c
5 files changed
+28 -7

No files matched your search

+5 -3
View File
@@ -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());
}
}
}