DO NOT MERGE - Fix build issue isScreenOn

Change-Id: I8821efd561d375c32702be55903fe401ab719e80
This commit is contained in:
Bill Yi
2014-07-14 13:35:35 -07:00
parent 5a19dd522f
commit 96f6a1a9e7

View File

@@ -1070,7 +1070,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
initializeHdmiState();
// Match current screen state.
if (mPowerManager.isScreenOn()) {
if (mPowerManager.isInteractive()) {
wakingUp(null);
} else {
goingToSleep(WindowManagerPolicy.OFF_BECAUSE_OF_USER);
@@ -4077,7 +4077,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
telephonyService.silenceRinger();
} else if ((mIncallPowerBehavior
& Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_HANGUP) != 0
&& telephonyService.isOffhook() && isScreenOn) {
&& telephonyService.isOffhook() && interactive) {
// Otherwise, if "Power button ends call" is enabled,
// the Power button will hang up any current active call.
hungUp = telephonyService.endCall();