Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 547c4f70 authored by Pinyao Ting's avatar Pinyao Ting
Browse files

Allow ShortcutPackage#findAll to return cached shortcuts.

Previously cached shortcuts are filtered from the result when it isn't
pinned, which prevents them from being used by other system services.

Bug: 175051424
Test: atest com.android.server.pm.ShortcutManagerTest1
            com.android.server.pm.ShortcutManagerTest2
            com.android.server.pm.ShortcutManagerTest3
            com.android.server.pm.ShortcutManagerTest4
            com.android.server.pm.ShortcutManagerTest5
            com.android.server.pm.ShortcutManagerTest6
            com.android.server.pm.ShortcutManagerTest7
            com.android.server.pm.ShortcutManagerTest8
            com.android.server.pm.ShortcutManagerTest9
            com.android.server.pm.ShortcutManagerTest10
            com.android.server.pm.ShortcutManagerTest11
Change-Id: I59b9f867da6291f98ed1d05899fcc9080f47455e
parent e0baa920
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -737,7 +737,7 @@ class ShortcutPackage extends ShortcutPackageItem {
                    || ((pinnedByCallerSet != null) && pinnedByCallerSet.contains(si.getId()));

            if (!getPinnedByAnyLauncher) {
                if (si.isFloating()) {
                if (si.isFloating() && !si.isCached()) {
                    if (!isPinnedByCaller) {
                        continue;
                    }