Add "Don't suggest app" shortcut to suggested apps.
This works for suggested apps in both Home and AA+. When enable_shortcut_dont_suggest_app is true, the secondary drop target "Don't Suggest app" is removed instead "Don't suggest app" is added to shortcuts. Video: https://b.corp.google.com/issues/319250810#comment5 Home: https://screenshot.googleplex.com/d7Wts48X6EmFAYg.png Private space app suggested: https://screenshot.googleplex.com/BukzCRTvkzbpwQ3.png AA+: https://screenshot.googleplex.com/ADMCHnQ378jvJEE.png Private space app suggested : https://screenshot.googleplex.com/AYga8Km3646AqMt.png Bug: 319250810 Flag: aconfig com.android.launcher.enable_shortcut_dont_suggest_app DEVELOPMENT Test: Manual. Change-Id: Ia7df749a1c7d806bd9d74124be138384c3050119
This commit is contained in:
1 parent
eb1966c278
commit
5e9b71e055
7 files changed
+50
-3
No files matched your search
@@ -39,6 +39,7 @@ import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCH
|
||||
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.DONT_SUGGEST_APP;
|
||||
import static com.android.launcher3.popup.SystemShortcut.INSTALL;
|
||||
import static com.android.launcher3.popup.SystemShortcut.PRIVATE_PROFILE_INSTALL;
|
||||
import static com.android.launcher3.popup.SystemShortcut.WIDGETS;
|
||||
@@ -417,10 +418,12 @@ public class QuickstepLauncher extends Launcher {
|
||||
shortcuts.addAll(getSplitShortcuts());
|
||||
shortcuts.add(WIDGETS);
|
||||
shortcuts.add(INSTALL);
|
||||
|
||||
if (Flags.enablePrivateSpaceInstallShortcut()) {
|
||||
shortcuts.add(PRIVATE_PROFILE_INSTALL);
|
||||
}
|
||||
if (Flags.enableShortcutDontSuggestApp()) {
|
||||
shortcuts.add(DONT_SUGGEST_APP);
|
||||
}
|
||||
return shortcuts.stream();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user