Merge "Add remove system shortcut to folder items" into main

This commit is contained in:
Treehugger Robot
2025-06-07 14:08:44 -07:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 2 deletions

View File

@@ -506,7 +506,8 @@ public class QuickstepLauncher extends Launcher implements RecentsViewContainer,
shortcuts.add(WIDGETS);
shortcuts.add(INSTALL);
if (Flags.enableLongPressRemoveShortcut()
&& (container == CONTAINER_HOTSEAT || container == CONTAINER_DESKTOP)) {
&& (container == CONTAINER_HOTSEAT || container == CONTAINER_DESKTOP
|| /* Folder */ container > 0)) {
shortcuts.add(REMOVE);
}
shortcuts.add(DONT_SUGGEST_APP);