Showing the shortcuts in the disabled state and removing ti from the menu when its disabled

am: 70a7c9b700

Change-Id: I081687401817e617d02b2be5abd8492493b1404f
This commit is contained in:
Sunny Goyal authored and android-build-merger committed 2016-07-28 19:32:08 +00:00
commit 330dbb4f28
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());
}
}
}