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

Commit 75a7066f authored by willl03's avatar willl03 Committed by Steve Kondik
Browse files

Only go HOME if screen is fully awake

Avoid going home when hardware home button is used to wake the device on an insecure keyguard

Change-Id: I5d5d8c4fff76967c29e70251f7b165205005ba11
parent a7b5ef6a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3654,8 +3654,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                awakenDreams();
                sendCloseSystemWindows(SYSTEM_DIALOG_REASON_HOME_KEY);
                hideRecentApps(false, true);
            } else {
                // Otherwise, just launch Home
            } else if (mScreenOnFully) {
                // check if screen is fully on before going home
                // to avoid hardware home button wake going home
                sendCloseSystemWindows(SYSTEM_DIALOG_REASON_HOME_KEY);
                startDockOrHome();
            }