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

Commit f468ca17 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Enter to touch mode by down or scroll event from any type of a device. am:...

Enter to touch mode by down or scroll event from any type of a device. am: 718c4da0 am: aa18efa1 am: 66ebcd7d

Change-Id: I331f564a53f636848570707fc8f1c0d19b782239
parents a8aabcec 66ebcd7d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5699,9 +5699,9 @@ public final class ViewRootImpl implements ViewParent,
                mTranslator.translateEventInScreenToAppWindow(event);
            }

            // Enter touch mode if event is coming from a touch screen device.
            // Enter touch mode on down or scroll from any type of a device.
            final int action = event.getAction();
            if (event.isFromSource(InputDevice.SOURCE_TOUCHSCREEN)) {
            if (action == MotionEvent.ACTION_DOWN || action == MotionEvent.ACTION_SCROLL) {
                ensureTouchMode(true);
            }