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

Commit 63338859 authored by Bruno Martins's avatar Bruno Martins Committed by Nishith Khanna
Browse files

Revert "SystemUIProxy: Add injectPress()"

This reverts commit e1335efd.

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

Change-Id: I708fbe2558b12fe10bc78591c0cd3b6dad176552
parent e7daef6f
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -113,9 +113,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
@@ -329,14 +329,6 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis
            });
        }

        @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