DO NOT MERGE Fix CEC read Global Setting timing am: 3bbf6c4bc0 am: 0770cd25c2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1537562 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I424d9adecad265dda86e581f2fc86990fb97b2fb
This commit is contained in:
@@ -621,7 +621,14 @@ public class HdmiControlService extends SystemService {
|
||||
mWakeUpMessageReceived = false;
|
||||
|
||||
if (isTvDeviceEnabled()) {
|
||||
mCecController.setOption(OptionKey.WAKEUP, tv().getAutoWakeup());
|
||||
boolean autoWakeupEnabled =
|
||||
readBooleanSetting(Global.HDMI_CONTROL_AUTO_WAKEUP_ENABLED, true);
|
||||
boolean autoDeviceOffEnabled =
|
||||
readBooleanSetting(Global.HDMI_CONTROL_AUTO_DEVICE_OFF_ENABLED, true);
|
||||
|
||||
mCecController.setOption(OptionKey.WAKEUP, autoWakeupEnabled);
|
||||
tv().setAutoWakeup(autoWakeupEnabled);
|
||||
tv().setAutoDeviceOff(autoDeviceOffEnabled);
|
||||
}
|
||||
int reason = -1;
|
||||
switch (initiatedBy) {
|
||||
|
||||
Reference in New Issue
Block a user