Loading aconfig/launcher.aconfig +7 −0 Original line number Diff line number Diff line Loading @@ -13,3 +13,10 @@ flag { description: "Enables two line label inside all apps." bug: "270390937" } flag { name: "enable_grid_only_overview" namespace: "launcher" description: "Enable a grid-only overview without a focused task." bug: "270397206" } quickstep/src/com/android/launcher3/uioverrides/states/OverviewModalTaskState.java +1 −1 Original line number Diff line number Diff line Loading @@ -72,7 +72,7 @@ public class OverviewModalTaskState extends OverviewState { @Override public boolean isTaskbarStashed(Launcher launcher) { if (FeatureFlags.ENABLE_GRID_ONLY_OVERVIEW.get()) { if (FeatureFlags.enableGridOnlyOverview()) { return true; } return super.isTaskbarStashed(launcher); Loading quickstep/src/com/android/quickstep/BaseActivityInterface.java +3 −3 Original line number Diff line number Diff line Loading @@ -239,7 +239,7 @@ public abstract class BaseActivityInterface<STATE_TYPE extends BaseState<STATE_T public final void calculateTaskSize(Context context, DeviceProfile dp, Rect outRect, PagedOrientationHandler orientedState) { if (dp.isTablet) { if (FeatureFlags.ENABLE_GRID_ONLY_OVERVIEW.get()) { if (FeatureFlags.enableGridOnlyOverview()) { calculateGridTaskSize(context, dp, outRect, orientedState); } else { calculateFocusTaskSize(context, dp, outRect); Loading Loading @@ -336,7 +336,7 @@ public abstract class BaseActivityInterface<STATE_TYPE extends BaseState<STATE_T PagedOrientationHandler orientedState) { Resources res = context.getResources(); Rect potentialTaskRect = new Rect(); if (FeatureFlags.ENABLE_GRID_ONLY_OVERVIEW.get()) { if (FeatureFlags.enableGridOnlyOverview()) { calculateGridSize(dp, potentialTaskRect); } else { calculateFocusTaskSize(context, dp, potentialTaskRect); Loading Loading @@ -368,7 +368,7 @@ public abstract class BaseActivityInterface<STATE_TYPE extends BaseState<STATE_T public final void calculateModalTaskSize(Context context, DeviceProfile dp, Rect outRect, PagedOrientationHandler orientedState) { calculateTaskSize(context, dp, outRect, orientedState); boolean isGridOnlyOverview = dp.isTablet && FeatureFlags.ENABLE_GRID_ONLY_OVERVIEW.get(); boolean isGridOnlyOverview = dp.isTablet && FeatureFlags.enableGridOnlyOverview(); int claimedSpaceBelow = isGridOnlyOverview ? dp.overviewActionsTopMarginPx + dp.overviewActionsHeight + dp.stashedTaskbarHeight : (dp.heightPx - outRect.bottom - dp.getInsets().bottom); Loading quickstep/src/com/android/quickstep/TaskOverlayFactory.java +1 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ public class TaskOverlayFactory implements ResourceBasedOverride { boolean isInLandscape = orientedState.getTouchRotation() != ROTATION_0; boolean isTablet = activity.getDeviceProfile().isTablet; boolean isGridOnlyOverview = isTablet && FeatureFlags.ENABLE_GRID_ONLY_OVERVIEW.get(); boolean isGridOnlyOverview = isTablet && FeatureFlags.enableGridOnlyOverview(); // Add overview actions to the menu when in in-place rotate landscape mode, or in // grid-only overview. if ((!canLauncherRotate && isInLandscape) || isGridOnlyOverview) { Loading quickstep/src/com/android/quickstep/views/ClearAllButton.java +2 −2 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ package com.android.quickstep.views; import static com.android.launcher3.config.FeatureFlags.ENABLE_GRID_ONLY_OVERVIEW; import static com.android.launcher3.config.FeatureFlags.enableGridOnlyOverview; import android.content.Context; import android.util.AttributeSet; Loading Loading @@ -251,7 +251,7 @@ public class ClearAllButton extends Button { private float getOriginalTranslationY() { DeviceProfile deviceProfile = mActivity.getDeviceProfile(); if (deviceProfile.isTablet) { if (ENABLE_GRID_ONLY_OVERVIEW.get()) { if (enableGridOnlyOverview()) { return (getRecentsView().getLastComputedTaskSize().height() + deviceProfile.overviewTaskThumbnailTopMarginPx) / 2.0f + deviceProfile.overviewRowSpacing; Loading Loading
aconfig/launcher.aconfig +7 −0 Original line number Diff line number Diff line Loading @@ -13,3 +13,10 @@ flag { description: "Enables two line label inside all apps." bug: "270390937" } flag { name: "enable_grid_only_overview" namespace: "launcher" description: "Enable a grid-only overview without a focused task." bug: "270397206" }
quickstep/src/com/android/launcher3/uioverrides/states/OverviewModalTaskState.java +1 −1 Original line number Diff line number Diff line Loading @@ -72,7 +72,7 @@ public class OverviewModalTaskState extends OverviewState { @Override public boolean isTaskbarStashed(Launcher launcher) { if (FeatureFlags.ENABLE_GRID_ONLY_OVERVIEW.get()) { if (FeatureFlags.enableGridOnlyOverview()) { return true; } return super.isTaskbarStashed(launcher); Loading
quickstep/src/com/android/quickstep/BaseActivityInterface.java +3 −3 Original line number Diff line number Diff line Loading @@ -239,7 +239,7 @@ public abstract class BaseActivityInterface<STATE_TYPE extends BaseState<STATE_T public final void calculateTaskSize(Context context, DeviceProfile dp, Rect outRect, PagedOrientationHandler orientedState) { if (dp.isTablet) { if (FeatureFlags.ENABLE_GRID_ONLY_OVERVIEW.get()) { if (FeatureFlags.enableGridOnlyOverview()) { calculateGridTaskSize(context, dp, outRect, orientedState); } else { calculateFocusTaskSize(context, dp, outRect); Loading Loading @@ -336,7 +336,7 @@ public abstract class BaseActivityInterface<STATE_TYPE extends BaseState<STATE_T PagedOrientationHandler orientedState) { Resources res = context.getResources(); Rect potentialTaskRect = new Rect(); if (FeatureFlags.ENABLE_GRID_ONLY_OVERVIEW.get()) { if (FeatureFlags.enableGridOnlyOverview()) { calculateGridSize(dp, potentialTaskRect); } else { calculateFocusTaskSize(context, dp, potentialTaskRect); Loading Loading @@ -368,7 +368,7 @@ public abstract class BaseActivityInterface<STATE_TYPE extends BaseState<STATE_T public final void calculateModalTaskSize(Context context, DeviceProfile dp, Rect outRect, PagedOrientationHandler orientedState) { calculateTaskSize(context, dp, outRect, orientedState); boolean isGridOnlyOverview = dp.isTablet && FeatureFlags.ENABLE_GRID_ONLY_OVERVIEW.get(); boolean isGridOnlyOverview = dp.isTablet && FeatureFlags.enableGridOnlyOverview(); int claimedSpaceBelow = isGridOnlyOverview ? dp.overviewActionsTopMarginPx + dp.overviewActionsHeight + dp.stashedTaskbarHeight : (dp.heightPx - outRect.bottom - dp.getInsets().bottom); Loading
quickstep/src/com/android/quickstep/TaskOverlayFactory.java +1 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ public class TaskOverlayFactory implements ResourceBasedOverride { boolean isInLandscape = orientedState.getTouchRotation() != ROTATION_0; boolean isTablet = activity.getDeviceProfile().isTablet; boolean isGridOnlyOverview = isTablet && FeatureFlags.ENABLE_GRID_ONLY_OVERVIEW.get(); boolean isGridOnlyOverview = isTablet && FeatureFlags.enableGridOnlyOverview(); // Add overview actions to the menu when in in-place rotate landscape mode, or in // grid-only overview. if ((!canLauncherRotate && isInLandscape) || isGridOnlyOverview) { Loading
quickstep/src/com/android/quickstep/views/ClearAllButton.java +2 −2 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ package com.android.quickstep.views; import static com.android.launcher3.config.FeatureFlags.ENABLE_GRID_ONLY_OVERVIEW; import static com.android.launcher3.config.FeatureFlags.enableGridOnlyOverview; import android.content.Context; import android.util.AttributeSet; Loading Loading @@ -251,7 +251,7 @@ public class ClearAllButton extends Button { private float getOriginalTranslationY() { DeviceProfile deviceProfile = mActivity.getDeviceProfile(); if (deviceProfile.isTablet) { if (ENABLE_GRID_ONLY_OVERVIEW.get()) { if (enableGridOnlyOverview()) { return (getRecentsView().getLastComputedTaskSize().height() + deviceProfile.overviewTaskThumbnailTopMarginPx) / 2.0f + deviceProfile.overviewRowSpacing; Loading