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

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

fixup! fw/b: Implement hardware keys custom rebinding

I'm honestly not sure what this was originally for...

Test: Use home button double click to turn screen off and notice that it
      no longer goes home.
Change-Id: If0b27444014b3103375f8cb6da618b1ddab305d0
parent e1335efd
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -2380,9 +2380,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                    mPendingHomeKeyEvent = null;
                    mHandler.removeCallbacks(mHomeDoubleTapTimeoutRunnable);
                    performKeyAction(mHomeDoubleTapAction, event);
                    if (mHomeDoubleTapAction != Action.SLEEP) {
                    mHomeConsumed = true;
                    }
                } else if (mDisplayId == DEFAULT_DISPLAY
                        && (mHomeLongPressAction == Action.APP_SWITCH
                            || mHomeDoubleTapAction == Action.APP_SWITCH)) {
@@ -2400,11 +2398,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                    // it should pass this right invocation type.
                    performKeyAction(mHomeLongPressAction, event,
                            AssistUtils.INVOCATION_TYPE_HOME_BUTTON_LONG_PRESS);
                    if (mHomeLongPressAction != Action.SLEEP) {
                    mHomeConsumed = true;
                }
            }
            }
            return true;
        }