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

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

Launcher3: Drop injectPress in favor of newly added onKeyEvent method

Change-Id: Ie16d05fbbad770b6d5edfbff8d9f7d7792c9cede
parent 9a808351
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@ public class TaskbarNavButtonController implements TaskbarControllers.LoggableTa
                logEvent(LAUNCHER_TASKBAR_HOME_BUTTON_TAP);
                mSystemUiProxy.updateContextualEduStats(/* isTrackpadGesture= */ false,
                        GestureType.HOME);
                mSystemUiProxy.injectPress(KeyEvent.KEYCODE_HOME);
                mSystemUiProxy.onKeyEvent(KeyEvent.KEYCODE_HOME, mDisplayId);
                break;
            case BUTTON_RECENTS:
                logEvent(LAUNCHER_TASKBAR_OVERVIEW_BUTTON_TAP);
+0 −5
Original line number Diff line number Diff line
@@ -219,11 +219,6 @@ class SystemUiProxy @Inject constructor(@ApplicationContext private val context:
            systemUiProxy?.injectLongPress(keyCode)
        }

    fun injectPress(keyCode: Int) =
        executeWithErrorLog({ "Failed call injectPress" }) {
            systemUiProxy?.injectPress(keyCode)
        }

    fun onImeSwitcherPressed() =
        executeWithErrorLog({ "Failed call onImeSwitcherPressed" }) {
            systemUiProxy?.onImeSwitcherPressed()