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

Unverified Commit e1335efd authored by LuK1337's avatar LuK1337
Browse files

SystemUI: injectDoublePress() -> injectPress()

Change-Id: I2e3c392de1c3c612d921e230f8d002cfd6b2ab2f
parent 142099ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ interface ISystemUiProxy {
    oneway void injectLongPress(int keyCode) = 46;

    /** Injects button press. */
    oneway void injectDoublePress(int keyCode) = 43;
    oneway void injectPress(int keyCode) = 43;

    /** Notifies when taskbar status updated */
    oneway void notifyTaskbarStatus(boolean visible, boolean stashed) = 47;
+2 −4
Original line number Diff line number Diff line
@@ -322,10 +322,8 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis
        }

        @Override
        public void injectDoublePress(int keyCode) throws RemoteException {
            verifyCallerAndClearCallingIdentityPostMain("doublePressInjected", () -> {
                sendEvent(KeyEvent.ACTION_DOWN, keyCode);
                sendEvent(KeyEvent.ACTION_UP, keyCode);
        public void injectPress(int keyCode) throws RemoteException {
            verifyCallerAndClearCallingIdentityPostMain("pressInjected", () -> {
                sendEvent(KeyEvent.ACTION_DOWN, keyCode);
                sendEvent(KeyEvent.ACTION_UP, keyCode);
            });