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

Commit 9ce557e3 authored by Hu Guo's avatar Hu Guo
Browse files

correct up eventTime

An incorrect up eventTime affects the value of  mHandledByLongPress of SingleKeyGestureDetector, which is set in SingleKeyGestureDetector#interceptKeyUp

Change-Id: I71bbdcd0bb964aeb7fe7a09f8f962ce32b8316db
parent 2949179f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -448,6 +448,7 @@ public class InputShellCommand extends ShellCommand {
                    event, nextEventTime, 1 /* repeatCount */, KeyEvent.FLAG_LONG_PRESS);
            injectKeyEvent(longPressEvent, async);
        }
        event = KeyEvent.changeTimeRepeat(event, SystemClock.uptimeMillis(), 0);
        injectKeyEvent(KeyEvent.changeAction(event, KeyEvent.ACTION_UP), async);
    }