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

Commit bebfc0b3 authored by Mehdi Alizadeh's avatar Mehdi Alizadeh
Browse files

Increase max shortcut limit to 10

Increase the maximum allowed shortcuts per activity from 5 to 10, to
accommodate the extra sharing shortcuts.

Bug: 123899560
Test: atest com.android.server.pm.ShortcutManagerTest1
Test: atest com.android.server.pm.ShortcutManagerTest2
Test: atest com.android.server.pm.ShortcutManagerTest3
Test: atest com.android.server.pm.ShortcutManagerTest4
Test: atest com.android.server.pm.ShortcutManagerTest5
Test: atest com.android.server.pm.ShortcutManagerTest6
Test: atest com.android.server.pm.ShortcutManagerTest7
Test: atest com.android.server.pm.ShortcutManagerTest8
Test: atest com.android.server.pm.ShortcutManagerTest9
Test: atest com.android.server.pm.ShortcutManagerTest10
Test: atest CtsShortcutHostTestCases
Test: atest CtsShortcutManagerTestCases

Change-Id: I9584b6b5a43e3d35eea304e820d6cff091b70441
parent c74d6b56
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -161,7 +161,7 @@ public class ShortcutService extends IShortcutService.Stub {
    static final int DEFAULT_MAX_UPDATES_PER_INTERVAL = 10;

    @VisibleForTesting
    static final int DEFAULT_MAX_SHORTCUTS_PER_APP = 5;
    static final int DEFAULT_MAX_SHORTCUTS_PER_APP = 10;

    @VisibleForTesting
    static final int DEFAULT_MAX_ICON_DIMENSION_DP = 96;