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
This commit is contained in:
Fabian Kozynski
2022-02-28 16:11:21 -05:00
parent 4700294c96
commit 4476db1884

View File

@@ -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();
}