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

Commit 70c27436 authored by Jeff Brown's avatar Jeff Brown Committed by Android Git Automerger
Browse files

am daa1c969: am aaf23a9a: am c3f5d694: Merge "Hang off call by power button while screen is on"

* commit 'daa1c969':
  Hang off call by power button while screen is on
parents 3c6bb4d4 daa1c969
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3992,7 +3992,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();