summaryrefslogtreecommitdiffstats
path: root/quickstep
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2018-08-07 17:20:35 -0700
committerSunny Goyal <sunnygoyal@google.com>2018-08-08 12:12:46 -0700
commitaad3359e8eb3e5d28954f88bda8147bcb1d74236 (patch)
treeec17ba0ecaa92b14358c529621cdde0dab63631d /quickstep
parent662f52b67f86fd0f2a8ddd32ada650268f55148b (diff)
downloadandroid_packages_apps_Trebuchet-aad3359e8eb3e5d28954f88bda8147bcb1d74236.tar.gz
android_packages_apps_Trebuchet-aad3359e8eb3e5d28954f88bda8147bcb1d74236.tar.bz2
android_packages_apps_Trebuchet-aad3359e8eb3e5d28954f88bda8147bcb1d74236.zip
Removing unused touch handling in PagedView so that it is similar to various platform class
Bug: 109828536 Change-Id: Ibaba3fb4298f2dc055d125acea5f4c47403bbef0
Diffstat (limited to 'quickstep')
-rw-r--r--quickstep/src/com/android/quickstep/views/RecentsView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java
index 9ddc6b66a..814d02d5a 100644
--- a/quickstep/src/com/android/quickstep/views/RecentsView.java
+++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
@@ -415,7 +415,7 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
case MotionEvent.ACTION_DOWN:
// Touch down anywhere but the deadzone around the visible clear all button and
// between the task views will start home on touch up
- if (mTouchState == TOUCH_STATE_REST) {
+ if (!isHandlingTouch()) {
updateDeadZoneRects();
final boolean clearAllButtonDeadZoneConsumed = mClearAllButton.getAlpha() == 1
&& mClearAllButtonDeadZoneRect.contains(x, y);
@@ -560,7 +560,7 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
boolean scrolling = super.computeScrollHelper();
boolean isFlingingFast = false;
updateCurveProperties();
- if (scrolling || (mTouchState == TOUCH_STATE_SCROLLING)) {
+ if (scrolling || isHandlingTouch()) {
if (scrolling) {
// Check if we are flinging quickly to disable high res thumbnail loading
isFlingingFast = mScroller.getCurrVelocity() > mFastFlingVelocity;