From faec29a87111899b311b77659b6ad94ed090b9a6 Mon Sep 17 00:00:00 2001 From: Pinyao Ting Date: Mon, 22 Mar 2021 11:01:44 -0700 Subject: [PATCH] Shortcut integration with AppSearch (Part 6) Removes the limitation on the number of shortcuts. Since the shortcuts have been moved into AppSearch, it no longer occupies system ram. As a result we can safely removes the limitaion on the number of shortcuts. Bug: 151359749 Test: atest ShortcutManagerTest1 ShortcutManagerTest2 ShortcutManagerTest3 ShortcutManagerTest4 ShortcutManagerTest5 ShortcutManagerTest6 ShortcutManagerTest7 ShortcutManagerTest8 ShortcutManagerTest9 ShortcutManagerTest10 ShortcutManagerTest11 Test: atest CtsShortcutManagerTestCases Change-Id: I7b901b854f08d9aa24d8d223e41b10c7f94925ec --- services/core/java/com/android/server/pm/ShortcutService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/pm/ShortcutService.java b/services/core/java/com/android/server/pm/ShortcutService.java index fc88f39bb57a7..0b21487088baa 100644 --- a/services/core/java/com/android/server/pm/ShortcutService.java +++ b/services/core/java/com/android/server/pm/ShortcutService.java @@ -171,7 +171,7 @@ public class ShortcutService extends IShortcutService.Stub { static final int DEFAULT_MAX_UPDATES_PER_INTERVAL = 10; @VisibleForTesting - static final int DEFAULT_MAX_SHORTCUTS_PER_ACTIVITY = 15; + static final int DEFAULT_MAX_SHORTCUTS_PER_ACTIVITY = Integer.MAX_VALUE; @VisibleForTesting static final int DEFAULT_MAX_ICON_DIMENSION_DP = 96;