Loading quickstep/src/com/android/quickstep/views/OverviewActionsView.java +3 −1 Original line number Diff line number Diff line Loading @@ -56,7 +56,8 @@ public class OverviewActionsView<T extends OverlayUICallbacks> extends FrameLayo HIDDEN_NO_RECENTS, HIDDEN_SPLIT_SCREEN, HIDDEN_SPLIT_SELECT_ACTIVE, HIDDEN_ACTIONS_IN_MENU HIDDEN_ACTIONS_IN_MENU, HIDDEN_DESKTOP }) @Retention(RetentionPolicy.SOURCE) public @interface ActionsHiddenFlags { } Loading @@ -67,6 +68,7 @@ public class OverviewActionsView<T extends OverlayUICallbacks> extends FrameLayo public static final int HIDDEN_SPLIT_SCREEN = 1 << 3; public static final int HIDDEN_SPLIT_SELECT_ACTIVE = 1 << 4; public static final int HIDDEN_ACTIONS_IN_MENU = 1 << 5; public static final int HIDDEN_DESKTOP = 1 << 6; @IntDef(flag = true, value = { DISABLED_SCROLLING, Loading quickstep/src/com/android/quickstep/views/RecentsView.java +5 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,7 @@ import static com.android.quickstep.views.DesktopTaskView.DESKTOP_MODE_SUPPORTED import static com.android.quickstep.views.OverviewActionsView.FLAG_IS_NOT_TABLET; import static com.android.quickstep.views.OverviewActionsView.FLAG_SINGLE_TASK; import static com.android.quickstep.views.OverviewActionsView.HIDDEN_ACTIONS_IN_MENU; import static com.android.quickstep.views.OverviewActionsView.HIDDEN_DESKTOP; import static com.android.quickstep.views.OverviewActionsView.HIDDEN_NON_ZERO_ROTATION; import static com.android.quickstep.views.OverviewActionsView.HIDDEN_NO_RECENTS; import static com.android.quickstep.views.OverviewActionsView.HIDDEN_NO_TASKS; Loading Loading @@ -3767,6 +3768,10 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T !mActivity.getDeviceProfile().isTablet); mActionsView.updateSplitButtonDisabledFlags(FLAG_SINGLE_TASK, !FeatureFlags.ENABLE_TASKBAR_IN_OVERVIEW.get() && getTaskViewCount() <= 1); if (DESKTOP_MODE_SUPPORTED) { boolean isCurrentDesktop = getCurrentPageTaskView() instanceof DesktopTaskView; mActionsView.updateHiddenFlags(HIDDEN_DESKTOP, isCurrentDesktop); } } /** Loading Loading
quickstep/src/com/android/quickstep/views/OverviewActionsView.java +3 −1 Original line number Diff line number Diff line Loading @@ -56,7 +56,8 @@ public class OverviewActionsView<T extends OverlayUICallbacks> extends FrameLayo HIDDEN_NO_RECENTS, HIDDEN_SPLIT_SCREEN, HIDDEN_SPLIT_SELECT_ACTIVE, HIDDEN_ACTIONS_IN_MENU HIDDEN_ACTIONS_IN_MENU, HIDDEN_DESKTOP }) @Retention(RetentionPolicy.SOURCE) public @interface ActionsHiddenFlags { } Loading @@ -67,6 +68,7 @@ public class OverviewActionsView<T extends OverlayUICallbacks> extends FrameLayo public static final int HIDDEN_SPLIT_SCREEN = 1 << 3; public static final int HIDDEN_SPLIT_SELECT_ACTIVE = 1 << 4; public static final int HIDDEN_ACTIONS_IN_MENU = 1 << 5; public static final int HIDDEN_DESKTOP = 1 << 6; @IntDef(flag = true, value = { DISABLED_SCROLLING, Loading
quickstep/src/com/android/quickstep/views/RecentsView.java +5 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,7 @@ import static com.android.quickstep.views.DesktopTaskView.DESKTOP_MODE_SUPPORTED import static com.android.quickstep.views.OverviewActionsView.FLAG_IS_NOT_TABLET; import static com.android.quickstep.views.OverviewActionsView.FLAG_SINGLE_TASK; import static com.android.quickstep.views.OverviewActionsView.HIDDEN_ACTIONS_IN_MENU; import static com.android.quickstep.views.OverviewActionsView.HIDDEN_DESKTOP; import static com.android.quickstep.views.OverviewActionsView.HIDDEN_NON_ZERO_ROTATION; import static com.android.quickstep.views.OverviewActionsView.HIDDEN_NO_RECENTS; import static com.android.quickstep.views.OverviewActionsView.HIDDEN_NO_TASKS; Loading Loading @@ -3767,6 +3768,10 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T !mActivity.getDeviceProfile().isTablet); mActionsView.updateSplitButtonDisabledFlags(FLAG_SINGLE_TASK, !FeatureFlags.ENABLE_TASKBAR_IN_OVERVIEW.get() && getTaskViewCount() <= 1); if (DESKTOP_MODE_SUPPORTED) { boolean isCurrentDesktop = getCurrentPageTaskView() instanceof DesktopTaskView; mActionsView.updateHiddenFlags(HIDDEN_DESKTOP, isCurrentDesktop); } } /** Loading