Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9a11b47 authored by Pat Manning's avatar Pat Manning
Browse files

Set next page immediately on subsequent arrow/tab presses when navigating overivew.

This allows the user to scroll as quickly as they want.

Fix: 328749622
Test: manual
Flag: NONE
Change-Id: I493841f11407e6fb9f15fd90b5a5e55fa4ed3ad3
parent 2155c072
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -4147,10 +4147,10 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T

    private boolean snapToPageRelative(int delta, boolean cycle,
            @TaskGridNavHelper.TASK_NAV_DIRECTION int direction) {
        // Ignore grid page snap events while scroll animations are running, otherwise the next
        // page gets set before the animation finishes and can cause jumps.
        // Set next page if scroll animation is still running, otherwise cannot snap to the
        // next page on successive key presses. Setting the current page aborts the scroll.
        if (!mScroller.isFinished()) {
            return true;
            setCurrentPage(getNextPage());
        }
        int pageCount = getPageCount();
        if (pageCount == 0) {