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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user