diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java index d9cbe0bc62..31563ad03c 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java @@ -123,6 +123,7 @@ import com.android.quickstep.TaskThumbnailCache; import com.android.quickstep.TaskUtils; import com.android.quickstep.ViewUtils; import com.android.quickstep.util.AppWindowAnimationHelper; +import com.android.quickstep.util.LayoutUtils; import com.android.quickstep.util.RecentsOrientedState; import com.android.quickstep.util.WindowSizeStrategy; import com.android.systemui.plugins.ResourceProvider; @@ -597,9 +598,18 @@ public abstract class RecentsView extends PagedView impl } } + @Override + protected void onPageBeginTransition() { + super.onPageBeginTransition(); + LayoutUtils.setViewEnabled(mActionsView, false); + } + @Override protected void onPageEndTransition() { super.onPageEndTransition(); + if (getScrollX() == getScrollForPage(getPageNearestToCenterOfScreen())) { + LayoutUtils.setViewEnabled(mActionsView, true); + } if (getNextPage() > 0) { setSwipeDownShouldLaunchApp(true); } @@ -958,6 +968,7 @@ public abstract class RecentsView extends PagedView impl setCurrentPage(0); mDwbToastShown = false; mActivity.getSystemUiController().updateUiState(UI_STATE_OVERVIEW, 0); + LayoutUtils.setViewEnabled(mActionsView, true); } public @Nullable TaskView getRunningTaskView() { diff --git a/quickstep/res/values/styles.xml b/quickstep/res/values/styles.xml index c97ee7c52a..d3c4f4d93b 100644 --- a/quickstep/res/values/styles.xml +++ b/quickstep/res/values/styles.xml @@ -79,8 +79,8 @@