Merge "Migrate ENABLE_GRID_ONLY_OVERVIEW to aconfig flag" into main
This commit is contained in:
commit
2ca7481b04
12 files changed
+20
-29
No files matched your search
@@ -1772,7 +1772,7 @@ public class DeviceProfile {
|
||||
|
||||
/** Gets the space that the overview actions will take, including bottom margin. */
|
||||
public int getOverviewActionsClaimedSpace() {
|
||||
int overviewActionsSpace = isTablet && FeatureFlags.enableGridOnlyOverview()
|
||||
int overviewActionsSpace = isTablet && Flags.enableGridOnlyOverview()
|
||||
? 0
|
||||
: (overviewActionsTopMarginPx + overviewActionsHeight);
|
||||
return overviewActionsSpace + getOverviewActionsClaimedSpaceBelow();
|
||||
|
||||
@@ -307,16 +307,6 @@ public final class FeatureFlags {
|
||||
+ "waiting for SystemUI and then merging the SystemUI progress whenever we "
|
||||
+ "start receiving the events");
|
||||
|
||||
// TODO(Block 23): Clean up flags
|
||||
// Aconfig migration complete for ENABLE_GRID_ONLY_OVERVIEW.
|
||||
@VisibleForTesting
|
||||
public static final BooleanFlag ENABLE_GRID_ONLY_OVERVIEW = getDebugFlag(270397206,
|
||||
"ENABLE_GRID_ONLY_OVERVIEW", TEAMFOOD,
|
||||
"Enable a grid-only overview without a focused task.");
|
||||
public static boolean enableGridOnlyOverview() {
|
||||
return ENABLE_GRID_ONLY_OVERVIEW.get() || Flags.enableGridOnlyOverview();
|
||||
}
|
||||
|
||||
// Aconfig migration complete for ENABLE_OVERVIEW_ICON_MENU.
|
||||
@VisibleForTesting
|
||||
public static final BooleanFlag ENABLE_OVERVIEW_ICON_MENU = getDebugFlag(257950105,
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
package com.android.launcher3.testing;
|
||||
|
||||
import static com.android.launcher3.allapps.AllAppsStore.DEFER_UPDATES_TEST;
|
||||
import static com.android.launcher3.config.FeatureFlags.enableGridOnlyOverview;
|
||||
import static com.android.launcher3.Flags.enableGridOnlyOverview;
|
||||
import static com.android.launcher3.config.FeatureFlags.FOLDABLE_SINGLE_PAGE;
|
||||
import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
|
||||
|
||||
|
||||
Reference in new issue
Block a user