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
This commit is contained in:
Tony Wickham
2018-04-04 15:23:10 -07:00
parent e976ca950b
commit 8da28f5010
@@ -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);
}
}