mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Only add shortcuts to the deep shortcut map if they are dynamic/manifest.
Bug: 30475465 Change-Id: I93aff6330b86a3bfa3e6b5741ab759d835618f0b
This commit is contained in:
@@ -2842,7 +2842,9 @@ public class LauncherModel extends BroadcastReceiver
|
||||
|
||||
// Now add the new shortcuts to the map.
|
||||
for (ShortcutInfoCompat shortcut : shortcuts) {
|
||||
if (shortcut.isEnabled()) {
|
||||
boolean shouldShowInContainer = shortcut.isEnabled()
|
||||
&& (shortcut.isDeclaredInManifest() || shortcut.isDynamic());
|
||||
if (shouldShowInContainer) {
|
||||
ComponentKey targetComponent
|
||||
= new ComponentKey(shortcut.getActivity(), shortcut.getUserHandle());
|
||||
mBgDeepShortcutMap.addToList(targetComponent, shortcut.getId());
|
||||
|
||||
Reference in New Issue
Block a user