From 4f78df9300d626cced11b8308f71eec8f79c61c0 Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Wed, 5 May 2021 16:55:07 -0700 Subject: [PATCH] Explicitly set mAllowGoingDown = false when only up is allowed Test: swipe up and down on a task, then scroll to clear all and try it again; should go up but not down in the second case Fixes: 187349538 Change-Id: I0879bafb3b5bb3c5ced8a502c98bfba7a3ce8a51 --- .../uioverrides/touchcontrollers/TaskViewTouchController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/TaskViewTouchController.java b/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/TaskViewTouchController.java index c2e5cdabf2..70b3870a6c 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/TaskViewTouchController.java +++ b/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/TaskViewTouchController.java @@ -167,6 +167,7 @@ public abstract class TaskViewTouchController mAllowGoingDown = true; directionsToDetectScroll = DIRECTION_BOTH; } else { + mAllowGoingDown = false; directionsToDetectScroll = upDirection; } }