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

Commit 8da28f50 authored by Tony Wickham's avatar Tony Wickham
Browse files

Fix quick scrub transition from home

We were snapping to page 0, which is a no-op but interferes with
the state transition.

Change-Id: I85b39a26c513e63686ad176ac851711b466d3df3
parent e976ca95
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -138,9 +138,8 @@ public class QuickScrubController implements OnAlarmListener {
    }

    public void snapToNextTaskIfAvailable() {
        if (mInQuickScrub && mRecentsView.getChildCount() > 0) {
            int toPage = mStartedFromHome ? 0 : mRecentsView.getNextPage() + 1;
            mRecentsView.snapToPage(toPage, QUICK_SCRUB_START_DURATION);
        if (!mStartedFromHome && mInQuickScrub && mRecentsView.getChildCount() > 0) {
            mRecentsView.snapToPage(mRecentsView.getNextPage() + 1, QUICK_SCRUB_START_DURATION);
        }
    }