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

Commit a977707d authored by Michael Wright's avatar Michael Wright
Browse files

Add missing constructor parameter to KeyEvent

When in the SyntheticKeyHandler, a missing constructor paramater caused the
wrong contstructor to be called. This would cause the device id, scan code and
flags to be incorrect.

Bug: 10966229
Change-Id: Ib84ef88d28c0da517b376c5493a851cf8fe0a9f7
parent 015bcd4d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4825,8 +4825,8 @@ public final class ViewRootImpl implements ViewParent,

            enqueueInputEvent(new KeyEvent(event.getDownTime(), event.getEventTime(),
                        event.getAction(), keyCode, event.getRepeatCount(), event.getMetaState(),
                        event.getScanCode(), event.getFlags() | KeyEvent.FLAG_FALLBACK,
                        event.getSource()));
                        event.getDeviceId(), event.getScanCode(),
                        event.getFlags() | KeyEvent.FLAG_FALLBACK, event.getSource()));
            return true;
        }