Launcher3: Add back uninstall button to app shortcuts
Fixup after qpr3 merge Change-Id: Iaaa30d36e3fa05f5ced8c142e8c4be8ec23a84ce
This commit is contained in:
parent
e426667959
commit
22a5ac9d42
|
@ -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.QuickstepSystemShortcut.getSplitSelectShortcutByPosition;
|
||||||
import static com.android.launcher3.popup.SystemShortcut.APP_INFO;
|
import static com.android.launcher3.popup.SystemShortcut.APP_INFO;
|
||||||
import static com.android.launcher3.popup.SystemShortcut.INSTALL;
|
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.popup.SystemShortcut.WIDGETS;
|
||||||
import static com.android.launcher3.taskbar.LauncherTaskbarUIController.ALL_APPS_PAGE_PROGRESS_INDEX;
|
import static com.android.launcher3.taskbar.LauncherTaskbarUIController.ALL_APPS_PAGE_PROGRESS_INDEX;
|
||||||
import static com.android.launcher3.taskbar.LauncherTaskbarUIController.MINUS_ONE_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<SystemShortcut.Factory> getSupportedShortcuts() {
|
public Stream<SystemShortcut.Factory> getSupportedShortcuts() {
|
||||||
// Order matters as it affects order of appearance in popup container
|
// Order matters as it affects order of appearance in popup container
|
||||||
List<SystemShortcut.Factory> shortcuts = new ArrayList(Arrays.asList(
|
List<SystemShortcut.Factory> shortcuts = new ArrayList(Arrays.asList(
|
||||||
APP_INFO, WellbeingModel.SHORTCUT_FACTORY, mHotseatPredictionController));
|
APP_INFO, UNINSTALL, WellbeingModel.SHORTCUT_FACTORY, mHotseatPredictionController));
|
||||||
shortcuts.addAll(getSplitShortcuts());
|
shortcuts.addAll(getSplitShortcuts());
|
||||||
shortcuts.add(WIDGETS);
|
shortcuts.add(WIDGETS);
|
||||||
shortcuts.add(INSTALL);
|
shortcuts.add(INSTALL);
|
||||||
|
|
Loading…
Reference in New Issue