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

Commit c4abd5c6 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Merge cherrypicks of ['googleplex-android-review.googlesource.com/26552271'] into 24Q2-release.

Change-Id: I37a9f2dc925df002a27b3c967a8e2cdfb598534f
parents 2e64c71a 1e6bf12f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -4136,10 +4136,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) {