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

Commit 6edc853e authored by Phil Tunstall's avatar Phil Tunstall
Browse files

Fix unresponsive home key after waking device with a long press

With the lockscreen disabled mHomeConsumed would not be properly set back to
false upon releasing the key, causing a subsequent press to perform no action.

Change-Id: I38eeba5850c2f0474cc4cca82a9dcbf17afa4665
parent 8841e1c8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2381,6 +2381,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            } else if (longPress) {
                if (!keyguardOn && !mHomeConsumed &&
                        mLongPressOnHomeBehavior != KEY_ACTION_NOTHING) {
                    mHomePressed = true;
                    if (mLongPressOnHomeBehavior != KEY_ACTION_APP_SWITCH) {
                        cancelPreloadRecentApps();
                    }