Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ef7358f authored by Jeff Brown's avatar Jeff Brown Committed by Android (Google) Code Review
Browse files

Merge "Synthetic cancel event should have touchscreen source."

parents 7d1279b3 2fdbc5a0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1746,6 +1746,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
                final long now = SystemClock.uptimeMillis();
                event = MotionEvent.obtain(now, now,
                        MotionEvent.ACTION_CANCEL, 0.0f, 0.0f, 0);
                event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
                syntheticEvent = true;
            }