From c78c53c22a8e333769b2cd1271eac3f08b0a9b3e Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Tue, 3 Oct 2023 18:57:45 +0100 Subject: [PATCH] Migrate ENABLE_OVERVIEW_ICON_MENU to aconfig flag Bug: 257951354 Change-Id: I47b1c1d422ce3c510ea22ea3e1feff0263ded177 --- .../src/com/android/quickstep/views/GroupedTaskView.java | 2 +- .../src/com/android/quickstep/views/IconAppChipView.java | 2 +- quickstep/src/com/android/quickstep/views/IconView.java | 2 +- .../src/com/android/quickstep/views/TaskMenuView.java | 2 +- quickstep/src/com/android/quickstep/views/TaskView.java | 2 +- src/com/android/launcher3/DeviceProfile.java | 2 +- src/com/android/launcher3/config/FeatureFlags.java | 9 --------- .../launcher3/touch/LandscapePagedViewHandler.java | 2 +- .../launcher3/touch/PortraitPagedViewHandler.java | 2 +- .../launcher3/touch/SeascapePagedViewHandler.java | 2 +- 10 files changed, 9 insertions(+), 18 deletions(-) diff --git a/quickstep/src/com/android/quickstep/views/GroupedTaskView.java b/quickstep/src/com/android/quickstep/views/GroupedTaskView.java index 71758ad100..74c778011d 100644 --- a/quickstep/src/com/android/quickstep/views/GroupedTaskView.java +++ b/quickstep/src/com/android/quickstep/views/GroupedTaskView.java @@ -2,7 +2,7 @@ package com.android.quickstep.views; import static android.app.ActivityTaskManager.INVALID_TASK_ID; -import static com.android.launcher3.config.FeatureFlags.enableOverviewIconMenu; +import static com.android.launcher3.Flags.enableOverviewIconMenu; import static com.android.launcher3.util.SplitConfigurationOptions.STAGE_POSITION_BOTTOM_OR_RIGHT; import static com.android.quickstep.util.SplitScreenUtils.convertLauncherSplitBoundsToShell; diff --git a/quickstep/src/com/android/quickstep/views/IconAppChipView.java b/quickstep/src/com/android/quickstep/views/IconAppChipView.java index 960a09e342..5a2e135ade 100644 --- a/quickstep/src/com/android/quickstep/views/IconAppChipView.java +++ b/quickstep/src/com/android/quickstep/views/IconAppChipView.java @@ -16,7 +16,7 @@ package com.android.quickstep.views; import static com.android.app.animation.Interpolators.EMPHASIZED; -import static com.android.launcher3.config.FeatureFlags.enableOverviewIconMenu; +import static com.android.launcher3.Flags.enableOverviewIconMenu; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; diff --git a/quickstep/src/com/android/quickstep/views/IconView.java b/quickstep/src/com/android/quickstep/views/IconView.java index 222f9ca51d..64caba742a 100644 --- a/quickstep/src/com/android/quickstep/views/IconView.java +++ b/quickstep/src/com/android/quickstep/views/IconView.java @@ -15,7 +15,7 @@ */ package com.android.quickstep.views; -import static com.android.launcher3.config.FeatureFlags.enableOverviewIconMenu; +import static com.android.launcher3.Flags.enableOverviewIconMenu; import android.content.Context; import android.graphics.Canvas; diff --git a/quickstep/src/com/android/quickstep/views/TaskMenuView.java b/quickstep/src/com/android/quickstep/views/TaskMenuView.java index 62c0bef014..8f129090ac 100644 --- a/quickstep/src/com/android/quickstep/views/TaskMenuView.java +++ b/quickstep/src/com/android/quickstep/views/TaskMenuView.java @@ -17,7 +17,7 @@ package com.android.quickstep.views; import static com.android.app.animation.Interpolators.EMPHASIZED; -import static com.android.launcher3.config.FeatureFlags.enableOverviewIconMenu; +import static com.android.launcher3.Flags.enableOverviewIconMenu; import static com.android.quickstep.views.TaskThumbnailView.DIM_ALPHA; import android.animation.Animator; diff --git a/quickstep/src/com/android/quickstep/views/TaskView.java b/quickstep/src/com/android/quickstep/views/TaskView.java index df907e7792..da9ddeb565 100644 --- a/quickstep/src/com/android/quickstep/views/TaskView.java +++ b/quickstep/src/com/android/quickstep/views/TaskView.java @@ -25,7 +25,7 @@ import static com.android.app.animation.Interpolators.FAST_OUT_SLOW_IN; import static com.android.app.animation.Interpolators.LINEAR; import static com.android.launcher3.LauncherState.BACKGROUND_APP; import static com.android.launcher3.Utilities.getDescendantCoordRelativeToAncestor; -import static com.android.launcher3.config.FeatureFlags.enableOverviewIconMenu; +import static com.android.launcher3.Flags.enableOverviewIconMenu; import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_TASK_ICON_TAP_OR_LONGPRESS; import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_TASK_LAUNCH_TAP; import static com.android.launcher3.util.Executors.MAIN_EXECUTOR; diff --git a/src/com/android/launcher3/DeviceProfile.java b/src/com/android/launcher3/DeviceProfile.java index c96e22d5c4..2ac60984c6 100644 --- a/src/com/android/launcher3/DeviceProfile.java +++ b/src/com/android/launcher3/DeviceProfile.java @@ -24,7 +24,7 @@ import static com.android.launcher3.InvariantDeviceProfile.INDEX_TWO_PANEL_PORTR import static com.android.launcher3.Utilities.dpiFromPx; import static com.android.launcher3.Utilities.pxFromSp; import static com.android.launcher3.config.FeatureFlags.ENABLE_MULTI_DISPLAY_PARTIAL_DEPTH; -import static com.android.launcher3.config.FeatureFlags.enableOverviewIconMenu; +import static com.android.launcher3.Flags.enableOverviewIconMenu; import static com.android.launcher3.folder.ClippedFolderIconLayoutRule.ICON_OVERLAP_FACTOR; import static com.android.launcher3.icons.GraphicsUtils.getShapePath; import static com.android.launcher3.icons.IconNormalizer.ICON_VISIBLE_AREA_FACTOR; diff --git a/src/com/android/launcher3/config/FeatureFlags.java b/src/com/android/launcher3/config/FeatureFlags.java index ec784e404a..feb84b7f94 100644 --- a/src/com/android/launcher3/config/FeatureFlags.java +++ b/src/com/android/launcher3/config/FeatureFlags.java @@ -316,15 +316,6 @@ public final class FeatureFlags { + "waiting for SystemUI and then merging the SystemUI progress whenever we " + "start receiving the events"); - // Aconfig migration complete for ENABLE_OVERVIEW_ICON_MENU. - @VisibleForTesting - public static final BooleanFlag ENABLE_OVERVIEW_ICON_MENU = getDebugFlag(257950105, - "ENABLE_OVERVIEW_ICON_MENU", TEAMFOOD, - "Enable updated overview icon and menu within task."); - public static boolean enableOverviewIconMenu() { - return ENABLE_OVERVIEW_ICON_MENU.get() || Flags.enableOverviewIconMenu(); - } - // Aconfig migration complete for ENABLE_CURSOR_HOVER_STATES. @VisibleForTesting public static final BooleanFlag ENABLE_CURSOR_HOVER_STATES = getDebugFlag(243191650, diff --git a/src/com/android/launcher3/touch/LandscapePagedViewHandler.java b/src/com/android/launcher3/touch/LandscapePagedViewHandler.java index d434ad2d02..c80f243120 100644 --- a/src/com/android/launcher3/touch/LandscapePagedViewHandler.java +++ b/src/com/android/launcher3/touch/LandscapePagedViewHandler.java @@ -27,7 +27,7 @@ import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT; import static com.android.launcher3.LauncherAnimUtils.VIEW_TRANSLATE_X; import static com.android.launcher3.LauncherAnimUtils.VIEW_TRANSLATE_Y; -import static com.android.launcher3.config.FeatureFlags.enableOverviewIconMenu; +import static com.android.launcher3.Flags.enableOverviewIconMenu; import static com.android.launcher3.touch.SingleAxisSwipeDetector.HORIZONTAL; import static com.android.launcher3.util.SplitConfigurationOptions.STAGE_POSITION_BOTTOM_OR_RIGHT; import static com.android.launcher3.util.SplitConfigurationOptions.STAGE_POSITION_TOP_OR_LEFT; diff --git a/src/com/android/launcher3/touch/PortraitPagedViewHandler.java b/src/com/android/launcher3/touch/PortraitPagedViewHandler.java index b3189b7dd6..62ef2295c0 100644 --- a/src/com/android/launcher3/touch/PortraitPagedViewHandler.java +++ b/src/com/android/launcher3/touch/PortraitPagedViewHandler.java @@ -27,7 +27,7 @@ import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT; import static com.android.launcher3.LauncherAnimUtils.VIEW_TRANSLATE_X; import static com.android.launcher3.LauncherAnimUtils.VIEW_TRANSLATE_Y; -import static com.android.launcher3.config.FeatureFlags.enableOverviewIconMenu; +import static com.android.launcher3.Flags.enableOverviewIconMenu; import static com.android.launcher3.touch.SingleAxisSwipeDetector.VERTICAL; import static com.android.launcher3.util.SplitConfigurationOptions.STAGE_POSITION_BOTTOM_OR_RIGHT; import static com.android.launcher3.util.SplitConfigurationOptions.STAGE_POSITION_TOP_OR_LEFT; diff --git a/src/com/android/launcher3/touch/SeascapePagedViewHandler.java b/src/com/android/launcher3/touch/SeascapePagedViewHandler.java index dac796407b..44095728e5 100644 --- a/src/com/android/launcher3/touch/SeascapePagedViewHandler.java +++ b/src/com/android/launcher3/touch/SeascapePagedViewHandler.java @@ -22,7 +22,7 @@ import static android.view.Gravity.END; import static android.view.Gravity.RIGHT; import static android.view.Gravity.START; -import static com.android.launcher3.config.FeatureFlags.enableOverviewIconMenu; +import static com.android.launcher3.Flags.enableOverviewIconMenu; import static com.android.launcher3.touch.SingleAxisSwipeDetector.HORIZONTAL; import static com.android.launcher3.util.SplitConfigurationOptions.STAGE_POSITION_BOTTOM_OR_RIGHT; import static com.android.launcher3.util.SplitConfigurationOptions.STAGE_POSITION_UNDEFINED;