Loading aconfig/launcher.aconfig +7 −0 Original line number Diff line number Diff line Loading @@ -84,6 +84,13 @@ flag { bug: "315055849" } flag { name: "enable_shortcut_dont_suggest_app" namespace: "launcher" description: "Enables don't suggest app shortcut for suggested apps" bug: "319250810" } flag { name: "enable_support_for_archiving" namespace: "launcher" Loading quickstep/src/com/android/launcher3/model/AppEventProducer.java +3 −1 Original line number Diff line number Diff line Loading @@ -38,6 +38,7 @@ import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCH import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ONRESUME; import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_QUICKSWITCH_LEFT; import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_QUICKSWITCH_RIGHT; import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_SYSTEM_SHORTCUT_DONT_SUGGEST_APP_TAP; import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_TASK_LAUNCH_SWIPE_DOWN; import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_TASK_LAUNCH_TAP; import static com.android.launcher3.model.PredictionHelper.isTrackedForHotseatPrediction; Loading Loading @@ -137,7 +138,8 @@ public class AppEventProducer implements StatsLogConsumer { || event == LAUNCHER_QUICKSWITCH_LEFT || event == LAUNCHER_APP_LAUNCH_DRAGDROP) { sendEvent(atomInfo, ACTION_LAUNCH, CONTAINER_PREDICTION); } else if (event == LAUNCHER_ITEM_DROPPED_ON_DONT_SUGGEST) { } else if (event == LAUNCHER_ITEM_DROPPED_ON_DONT_SUGGEST || event == LAUNCHER_SYSTEM_SHORTCUT_DONT_SUGGEST_APP_TAP) { sendEvent(atomInfo, ACTION_DISMISS, CONTAINER_PREDICTION); } else if (event == LAUNCHER_ITEM_DRAG_STARTED) { mLastDragItem = atomInfo; Loading quickstep/src/com/android/launcher3/uioverrides/QuickstepLauncher.java +4 −1 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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(); } Loading res/values/strings.xml +1 −1 Original line number Diff line number Diff line Loading @@ -175,7 +175,7 @@ <string name="install_private_system_shortcut_label">Install in private</string> <!-- Label for install drop target. [CHAR_LIMIT=20] --> <string name="install_drop_target_label">Install</string> <!-- Label for install dismiss prediction. --> <!-- Label for dismiss prediction. --> <string name="dismiss_prediction_label">Don\'t suggest app</string> <!-- Label for pinning predicted app. --> <string name="pin_prediction">Pin Prediction</string> Loading src/com/android/launcher3/SecondaryDropTarget.java +3 −0 Original line number Diff line number Diff line Loading @@ -155,6 +155,9 @@ public class SecondaryDropTarget extends ButtonDropTarget implements OnAlarmList } return INVALID; } else if (info.isPredictedItem()) { if (Flags.enableShortcutDontSuggestApp()) { return INVALID; } return DISMISS_PREDICTION; } Loading Loading
aconfig/launcher.aconfig +7 −0 Original line number Diff line number Diff line Loading @@ -84,6 +84,13 @@ flag { bug: "315055849" } flag { name: "enable_shortcut_dont_suggest_app" namespace: "launcher" description: "Enables don't suggest app shortcut for suggested apps" bug: "319250810" } flag { name: "enable_support_for_archiving" namespace: "launcher" Loading
quickstep/src/com/android/launcher3/model/AppEventProducer.java +3 −1 Original line number Diff line number Diff line Loading @@ -38,6 +38,7 @@ import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCH import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ONRESUME; import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_QUICKSWITCH_LEFT; import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_QUICKSWITCH_RIGHT; import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_SYSTEM_SHORTCUT_DONT_SUGGEST_APP_TAP; import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_TASK_LAUNCH_SWIPE_DOWN; import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_TASK_LAUNCH_TAP; import static com.android.launcher3.model.PredictionHelper.isTrackedForHotseatPrediction; Loading Loading @@ -137,7 +138,8 @@ public class AppEventProducer implements StatsLogConsumer { || event == LAUNCHER_QUICKSWITCH_LEFT || event == LAUNCHER_APP_LAUNCH_DRAGDROP) { sendEvent(atomInfo, ACTION_LAUNCH, CONTAINER_PREDICTION); } else if (event == LAUNCHER_ITEM_DROPPED_ON_DONT_SUGGEST) { } else if (event == LAUNCHER_ITEM_DROPPED_ON_DONT_SUGGEST || event == LAUNCHER_SYSTEM_SHORTCUT_DONT_SUGGEST_APP_TAP) { sendEvent(atomInfo, ACTION_DISMISS, CONTAINER_PREDICTION); } else if (event == LAUNCHER_ITEM_DRAG_STARTED) { mLastDragItem = atomInfo; Loading
quickstep/src/com/android/launcher3/uioverrides/QuickstepLauncher.java +4 −1 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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(); } Loading
res/values/strings.xml +1 −1 Original line number Diff line number Diff line Loading @@ -175,7 +175,7 @@ <string name="install_private_system_shortcut_label">Install in private</string> <!-- Label for install drop target. [CHAR_LIMIT=20] --> <string name="install_drop_target_label">Install</string> <!-- Label for install dismiss prediction. --> <!-- Label for dismiss prediction. --> <string name="dismiss_prediction_label">Don\'t suggest app</string> <!-- Label for pinning predicted app. --> <string name="pin_prediction">Pin Prediction</string> Loading
src/com/android/launcher3/SecondaryDropTarget.java +3 −0 Original line number Diff line number Diff line Loading @@ -155,6 +155,9 @@ public class SecondaryDropTarget extends ButtonDropTarget implements OnAlarmList } return INVALID; } else if (info.isPredictedItem()) { if (Flags.enableShortcutDontSuggestApp()) { return INVALID; } return DISMISS_PREDICTION; } Loading