Merge "Only send <Standby> to TV on sleep when active source" into rvc-dev am: b3898ee44e
Change-Id: I14e114c9660113ffd9f59ce136e7e73ea947c18f
This commit is contained in:
@@ -165,10 +165,11 @@ public class HdmiCecLocalDevicePlayback extends HdmiCecLocalDeviceSource {
|
|||||||
mService.sendCecCommand(HdmiCecMessageBuilder.buildInactiveSource(
|
mService.sendCecCommand(HdmiCecMessageBuilder.buildInactiveSource(
|
||||||
mAddress, mService.getPhysicalAddress()));
|
mAddress, mService.getPhysicalAddress()));
|
||||||
}
|
}
|
||||||
|
boolean wasActiveSource = mIsActiveSource;
|
||||||
// Invalidate the internal active source record when goes to standby
|
// Invalidate the internal active source record when goes to standby
|
||||||
// This set will also update mIsActiveSource
|
// This set will also update mIsActiveSource
|
||||||
mService.setActiveSource(Constants.ADDR_INVALID, Constants.INVALID_PHYSICAL_ADDRESS);
|
mService.setActiveSource(Constants.ADDR_INVALID, Constants.INVALID_PHYSICAL_ADDRESS);
|
||||||
if (initiatedByCec || !mAutoTvOff) {
|
if (initiatedByCec || !mAutoTvOff || !wasActiveSource) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
switch (standbyAction) {
|
switch (standbyAction) {
|
||||||
|
|||||||
Reference in New Issue
Block a user