From 22a5ac9d42822fe5b84f1d500b4d84e53f6379f1 Mon Sep 17 00:00:00 2001 From: Adithya R Date: Thu, 6 Jul 2023 11:46:47 +0530 Subject: [PATCH] Launcher3: Add back uninstall button to app shortcuts Fixup after qpr3 merge Change-Id: Iaaa30d36e3fa05f5ced8c142e8c4be8ec23a84ce --- .../com/android/launcher3/uioverrides/QuickstepLauncher.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/launcher3/uioverrides/QuickstepLauncher.java b/quickstep/src/com/android/launcher3/uioverrides/QuickstepLauncher.java index 0a72f3682d..a31397e587 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/QuickstepLauncher.java +++ b/quickstep/src/com/android/launcher3/uioverrides/QuickstepLauncher.java @@ -42,6 +42,7 @@ import static com.android.launcher3.model.data.ItemInfo.NO_MATCHING_ID; import static com.android.launcher3.popup.QuickstepSystemShortcut.getSplitSelectShortcutByPosition; import static com.android.launcher3.popup.SystemShortcut.APP_INFO; import static com.android.launcher3.popup.SystemShortcut.INSTALL; +import static com.android.launcher3.popup.SystemShortcut.UNINSTALL; import static com.android.launcher3.popup.SystemShortcut.WIDGETS; import static com.android.launcher3.taskbar.LauncherTaskbarUIController.ALL_APPS_PAGE_PROGRESS_INDEX; import static com.android.launcher3.taskbar.LauncherTaskbarUIController.MINUS_ONE_PAGE_PROGRESS_INDEX; @@ -397,7 +398,7 @@ public class QuickstepLauncher extends Launcher { public Stream getSupportedShortcuts() { // Order matters as it affects order of appearance in popup container List shortcuts = new ArrayList(Arrays.asList( - APP_INFO, WellbeingModel.SHORTCUT_FACTORY, mHotseatPredictionController)); + APP_INFO, UNINSTALL, WellbeingModel.SHORTCUT_FACTORY, mHotseatPredictionController)); shortcuts.addAll(getSplitShortcuts()); shortcuts.add(WIDGETS); shortcuts.add(INSTALL);