diff options
author | Tony <twickham@google.com> | 2018-03-12 17:47:31 +0000 |
---|---|---|
committer | Tony <twickham@google.com> | 2018-03-12 17:47:31 +0000 |
commit | 8ee1fe5041b9046536d0bc6109a0c7ac4f251c4b (patch) | |
tree | 66a06b2f2d772d77de36dceeb90639295723db62 /quickstep/src/com/android/quickstep/QuickScrubController.java | |
parent | 38f4ab17490ab1c2310f4e83e9be820ef7b2f4c0 (diff) | |
download | android_packages_apps_Trebuchet-8ee1fe5041b9046536d0bc6109a0c7ac4f251c4b.tar.gz android_packages_apps_Trebuchet-8ee1fe5041b9046536d0bc6109a0c7ac4f251c4b.tar.bz2 android_packages_apps_Trebuchet-8ee1fe5041b9046536d0bc6109a0c7ac4f251c4b.zip |
Code cleanup: remove some unnecessary methods/variables
Change-Id: I21672b517b9050f82dba6d85ce4e371ebdfc9b50
Diffstat (limited to 'quickstep/src/com/android/quickstep/QuickScrubController.java')
-rw-r--r-- | quickstep/src/com/android/quickstep/QuickScrubController.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/quickstep/src/com/android/quickstep/QuickScrubController.java b/quickstep/src/com/android/quickstep/QuickScrubController.java index dc1c0d2ac..b9d96b97e 100644 --- a/quickstep/src/com/android/quickstep/QuickScrubController.java +++ b/quickstep/src/com/android/quickstep/QuickScrubController.java @@ -50,7 +50,6 @@ public class QuickScrubController implements OnAlarmListener { private boolean mInQuickScrub; private int mQuickScrubSection; - private int mStartPage; private boolean mStartedFromHome; private boolean mHasAlarmRun; @@ -65,7 +64,6 @@ public class QuickScrubController implements OnAlarmListener { public void onQuickScrubStart(boolean startingFromHome) { mInQuickScrub = true; - mStartPage = 0; mStartedFromHome = startingFromHome; mQuickScrubSection = 0; mHasAlarmRun = false; @@ -139,7 +137,7 @@ public class QuickScrubController implements OnAlarmListener { } private void goToPageWithHaptic(int pageToGoTo) { - pageToGoTo = Utilities.boundToRange(pageToGoTo, mStartPage, mRecentsView.getPageCount() - 1); + pageToGoTo = Utilities.boundToRange(pageToGoTo, 0, mRecentsView.getPageCount() - 1); if (pageToGoTo != mRecentsView.getNextPage()) { int duration = Math.abs(pageToGoTo - mRecentsView.getNextPage()) * QUICKSCRUB_SNAP_DURATION_PER_PAGE; @@ -155,7 +153,7 @@ public class QuickScrubController implements OnAlarmListener { if (mQuickScrubSection == NUM_QUICK_SCRUB_SECTIONS && currPage < mRecentsView.getPageCount() - 1) { goToPageWithHaptic(currPage + 1); - } else if (mQuickScrubSection == 0 && currPage > mStartPage) { + } else if (mQuickScrubSection == 0 && currPage > 0) { goToPageWithHaptic(currPage - 1); } mHasAlarmRun = true; |