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

Commit 3ac2f66f authored by shower's avatar shower
Browse files

Hang off call by power button while screen is on



Enable power button end call and screen is off.  User use power button
to turn on screen will end call.  Should turn on screen and not end call

Change-Id: Idf34f7724dbf1796205332c5c7ef663102f8a30c
Signed-off-by: default avatarshower <shower929@gmail.com>
parent 584ace0d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3984,7 +3984,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                                telephonyService.silenceRinger();
                            } else if ((mIncallPowerBehavior
                                    & Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_HANGUP) != 0
                                    && telephonyService.isOffhook()) {
                                    && telephonyService.isOffhook() && isScreenOn) {
                                // Otherwise, if "Power button ends call" is enabled,
                                // the Power button will hang up any current active call.
                                hungUp = telephonyService.endCall();