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

Commit b5a913cc authored by gaoshang's avatar gaoshang Committed by android-build-merger
Browse files

Merge "input cmds: fix keyevent not support sources parameter" am: 11ec2eb1

am: 4f697fe5

Change-Id: Ice43c79858930ccc48b9470152e0af2d99e966ae
parents e3f872cf 4f697fe5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -88,8 +88,8 @@ public class Input {
                    final boolean longpress = "--longpress".equals(args[index + 1]);
                    final int start = longpress ? index + 2 : index + 1;
                    inputSource = getSource(inputSource, InputDevice.SOURCE_KEYBOARD);
                    if (length > start) {
                        for (int i = start; i < length; i++) {
                    if (args.length > start) {
                        for (int i = start; i < args.length; i++) {
                            int keyCode = KeyEvent.keyCodeFromString(args[i]);
                            if (keyCode == KeyEvent.KEYCODE_UNKNOWN) {
                                keyCode = KeyEvent.keyCodeFromString("KEYCODE_" + args[i]);