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

Unverified Commit b9639041 authored by Hikari-no-Tenshi's avatar Hikari-no-Tenshi Committed by Michael Bestas
Browse files

Fix end call by pressing power button

Change-Id: Ibee57bd83257cd8adf0eb31b8c9e8dfe1eaac47c
parent dcaa9693
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2262,6 +2262,10 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                    Settings.System.END_BUTTON_BEHAVIOR,
                    Settings.System.END_BUTTON_BEHAVIOR_DEFAULT,
                    UserHandle.USER_CURRENT);
            mIncallPowerBehavior = Settings.Secure.getIntForUser(resolver,
                    Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR,
                    Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_DEFAULT,
                    UserHandle.USER_CURRENT);
            mHomeWakeScreen = (CMSettings.System.getIntForUser(resolver,
                    CMSettings.System.HOME_WAKE_SCREEN, 1, UserHandle.USER_CURRENT) == 1) &&
                    ((mDeviceHardwareWakeKeys & KEY_MASK_HOME) != 0);