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

Commit 0166a839 authored by Bruno Martins's avatar Bruno Martins Committed by Michael Bestas
Browse files

Revert "SystemUIProxy: Add injectPress()"

This reverts commit 0b9cb008.

Reason: Google added `void onKeyEvent(int keycode, int displayId)`
making this one redundant.

Change-Id: I708fbe2558b12fe10bc78591c0cd3b6dad176552
parent 3103d1a7
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -114,9 +114,6 @@ interface ISystemUiProxy {
    /** Injects button long press. */
    oneway void injectLongPress(int keyCode) = 46;

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

    /** Notifies when taskbar status updated */
    oneway void notifyTaskbarStatus(boolean visible, boolean stashed) = 47;

+0 −8
Original line number Diff line number Diff line
@@ -338,14 +338,6 @@ public class LauncherProxyService implements CallbackController<LauncherProxyLis
            });
        }

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

        @Override
        public void onImeSwitcherPressed() {
            // TODO(b/204901476) We're intentionally using the default display for now since