DO NOT MERGE - Fix build issue isScreenOn
Change-Id: I8821efd561d375c32702be55903fe401ab719e80
This commit is contained in:
@@ -1070,7 +1070,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
|||||||
initializeHdmiState();
|
initializeHdmiState();
|
||||||
|
|
||||||
// Match current screen state.
|
// Match current screen state.
|
||||||
if (mPowerManager.isScreenOn()) {
|
if (mPowerManager.isInteractive()) {
|
||||||
wakingUp(null);
|
wakingUp(null);
|
||||||
} else {
|
} else {
|
||||||
goingToSleep(WindowManagerPolicy.OFF_BECAUSE_OF_USER);
|
goingToSleep(WindowManagerPolicy.OFF_BECAUSE_OF_USER);
|
||||||
@@ -4077,7 +4077,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() && isScreenOn) {
|
&& telephonyService.isOffhook() && interactive) {
|
||||||
// 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();
|
||||||
|
|||||||
Reference in New Issue
Block a user