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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user