From b6ad9dfaf53120dbd714a28337fa7984b1554e65 Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Thu, 2 Dec 2021 14:30:48 +0000 Subject: [PATCH] Allow snapping to focused task in overview grid Fix: 208644826 Test: manual Change-Id: Ia6fb2ae44209042f6d40bf8db5d1f43b3b6a27ee --- .../src/com/android/quickstep/views/RecentsView.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index d855d5b86c..311745084c 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -1264,7 +1264,7 @@ public abstract class RecentsView mMinScroll && finalPos < mMaxScroll) { + if (finalPos > mMinScroll && finalPos < mMaxScroll) { int firstPageScroll = getScrollForPage(!mIsRtl ? 0 : getPageCount() - 1); int lastPageScroll = getScrollForPage(!mIsRtl ? getPageCount() - 1 : 0); @@ -1278,6 +1278,16 @@ public abstract class RecentsView