From 7d4176bf738eb7aff7e779b585086fa3a0ec37d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Franco?= Date: Tue, 25 Oct 2022 22:35:34 +0000 Subject: [PATCH] Revert "Prevent double touch inputs in the BaseDragLayer" This reverts commit 68fc44ffadb80bb6bb5c3432092dcc5536cd5f54. Reason for revert: Wrong handling of events Change-Id: Ic34916123ed6c4ba33f629549dda2cdbc890b413 --- src/com/android/launcher3/views/BaseDragLayer.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/com/android/launcher3/views/BaseDragLayer.java b/src/com/android/launcher3/views/BaseDragLayer.java index 1e154a2dfb..800b1f6ad7 100644 --- a/src/com/android/launcher3/views/BaseDragLayer.java +++ b/src/com/android/launcher3/views/BaseDragLayer.java @@ -273,12 +273,6 @@ public abstract class BaseDragLayer @Override public boolean dispatchTouchEvent(MotionEvent ev) { - if (ev.getActionIndex() > 0) { - // This means there is multiple touch inputs, ignore it, we could also cancel the - // previous touch but the user might cancel the drag by accident. - return true; - } - switch (ev.getAction()) { case ACTION_DOWN: { if ((mTouchDispatchState & TOUCH_DISPATCHING_TO_VIEW_IN_PROGRESS) != 0) {