diff options
| -rw-r--r-- | services/core/java/com/android/server/input/InputShellCommand.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/input/InputShellCommand.java b/services/core/java/com/android/server/input/InputShellCommand.java index 138186ba6191..eac5f83f946c 100644 --- a/services/core/java/com/android/server/input/InputShellCommand.java +++ b/services/core/java/com/android/server/input/InputShellCommand.java @@ -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); } |