Don't snap to focused task in split select

- In split select there is no overview actions, and focused task's snappign position is not centered, it's weird to snap so avoid it
- Follow-up of ag/16378986

Bug: 208644826
Test: manual
Change-Id: I260b5c6164db562717346396b1830af02d408944
This commit is contained in:
Alex Chau 2021-12-10 15:27:17 +00:00
parent b6ad9dfaf5
commit 9ef8e2dcee
1 changed files with 3 additions and 0 deletions

View File

@ -1279,6 +1279,9 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
: getScrollForPage(mNextPage);
if (showAsGrid()) {
if (isSplitSelectionActive()) {
return;
}
TaskView taskView = getTaskViewAt(mNextPage);
// Only snap to fully visible focused task.
if (taskView == null