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