* commit 'aaf23a9a653457cccf54293b2ff76196718c7a1a': Hang off call by power button while screen is on
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user