From 8da28f50105f8fdb55b9dfe66df6f86e893108f0 Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Wed, 4 Apr 2018 15:23:10 -0700 Subject: 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 --- quickstep/src/com/android/quickstep/QuickScrubController.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'quickstep/src/com/android/quickstep/QuickScrubController.java') diff --git a/quickstep/src/com/android/quickstep/QuickScrubController.java b/quickstep/src/com/android/quickstep/QuickScrubController.java index 275fd2902..fd089b592 100644 --- a/quickstep/src/com/android/quickstep/QuickScrubController.java +++ b/quickstep/src/com/android/quickstep/QuickScrubController.java @@ -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); } } -- cgit v1.2.3