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

* commit 'daa1c96954f666b9f661501e11014a57533eefad':
  Hang off call by power button while screen is on
This commit is contained in:
Jeff Brown
2014-03-11 00:15:11 +00:00
committed by Android Git Automerger

View File

@@ -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();