Loading policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -3989,7 +3989,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { telephonyService.silenceRinger(); telephonyService.silenceRinger(); } else if ((mIncallPowerBehavior } else if ((mIncallPowerBehavior & Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_HANGUP) != 0 & Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_HANGUP) != 0 && telephonyService.isOffhook()) { && telephonyService.isOffhook() && isScreenOn) { // Otherwise, if "Power button ends call" is enabled, // Otherwise, if "Power button ends call" is enabled, // the Power button will hang up any current active call. // the Power button will hang up any current active call. hungUp = telephonyService.endCall(); hungUp = telephonyService.endCall(); Loading Loading
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -3989,7 +3989,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { telephonyService.silenceRinger(); telephonyService.silenceRinger(); } else if ((mIncallPowerBehavior } else if ((mIncallPowerBehavior & Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_HANGUP) != 0 & Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_HANGUP) != 0 && telephonyService.isOffhook()) { && telephonyService.isOffhook() && isScreenOn) { // Otherwise, if "Power button ends call" is enabled, // Otherwise, if "Power button ends call" is enabled, // the Power button will hang up any current active call. // the Power button will hang up any current active call. hungUp = telephonyService.endCall(); hungUp = telephonyService.endCall(); Loading