From 4476db188490d3a4a96edfaa02d138e1c634a572 Mon Sep 17 00:00:00 2001 From: Fabian Kozynski Date: Mon, 28 Feb 2022 16:11:21 -0500 Subject: [PATCH] Use ACTION_UP instead of ACTION_DOWN in handler We should only refresh UI on ACTION_DOWN, in this case, if nothing has handled the touch, CentralSurfaces will close QS. However, when dragging back gesture in QSCustomizer, this is handled properly as a back action and QSCustomizer is closed. Test: manual Fixes: 183172445 Change-Id: I1d31885638a7cddcb5826723ba7562e43bb5e935 --- .../com/android/systemui/statusbar/phone/CentralSurfaces.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfaces.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfaces.java index 5642744d3390a..9866ce0332a44 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfaces.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfaces.java @@ -1505,7 +1505,7 @@ public class CentralSurfaces extends CoreStartable implements return (v, event) -> { mAutoHideController.checkUserAutoHide(event); mRemoteInputManager.checkRemoteInputOutside(event); - if (event.getAction() == MotionEvent.ACTION_DOWN) { + if (event.getAction() == MotionEvent.ACTION_UP) { if (mExpandedVisible) { mShadeController.animateCollapsePanels(); }