Merge "Revert "Prevent double touch inputs in the BaseDragLayer"" into tm-qpr-dev am: a4798b5687

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20283573

Change-Id: I3944f93e467a8a9cb06e056bdecbfee76caa6c0e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Sebastián Franco
2022-10-26 17:07:08 +00:00
committed by Automerger Merge Worker
@@ -270,12 +270,6 @@ public abstract class BaseDragLayer<T extends Context & ActivityContext>
@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) {