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

Commit a21f3e78 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Do not enter touch mode on non-touchscreen events"

parents 4de191dc 75e5029e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4281,7 +4281,8 @@ public final class ViewRootImpl implements ViewParent,

            // Enter touch mode on down or scroll.
            final int action = event.getAction();
            if (action == MotionEvent.ACTION_DOWN || action == MotionEvent.ACTION_SCROLL) {
            if (event.isFromSource(InputDevice.SOURCE_TOUCHSCREEN)
                    && (action == MotionEvent.ACTION_DOWN || action == MotionEvent.ACTION_SCROLL)) {
                ensureTouchMode(true);
            }