Remove OTP calls on wake-up from PhoneWindowManager
OTP is now invoked on every wake-up from HdmiControlService, in response to an ACTION_SCREEN_ON broadcast.
Therefore the explicit call to OTP on wake-up is redundant.
OTP still needs to be invoked explicitely on a HOME button press, since that doesn't always result in wake-up.
Bug: 167961841
Test: atest HdmiCecLocalDevicePlaybackTest and manual tests that wake keys and power button still trigger OTP.
Change-Id: I91f467d6b9968a565dc29441e5f67a5bbd9fa2dd
(cherry picked from commit 4b72eb799c)
This commit is contained in:
@@ -4251,12 +4251,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
}
|
||||
|
||||
mPowerManager.wakeUp(wakeTime, reason, details);
|
||||
|
||||
// Turn on the connected TV and switch HDMI input if we're a HDMI playback device.
|
||||
final HdmiControl hdmiControl = getHdmiControl();
|
||||
if (hdmiControl != null) {
|
||||
hdmiControl.turnOnTv();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user