Change handling logic in SystemAudioAutoInitiationAction
Connection to sound system is lost when fail to send
<GiveSystemAudioModeStatus> and it changes to TV speaker.
This CL utilizes failsafe process(handleSystemAudioModeStatusTimeout)
already used in case that Audio system device did not reply to
<SystemAudioModeStatus>.
This will make TV keeps user last settings as possible.
Test: Sanity Test on Android TV connected to AVR.
Switch TV to standby mode and turn it on after overnight.
Change-Id: I1b8f929cac6e322e9221a0c5b8e0b77737860adc
This commit is contained in:
@@ -50,8 +50,7 @@ final class SystemAudioAutoInitiationAction extends HdmiCecFeatureAction {
|
||||
@Override
|
||||
public void onSendCompleted(int error) {
|
||||
if (error != SendMessageResult.SUCCESS) {
|
||||
tv().setSystemAudioMode(false);
|
||||
finish();
|
||||
handleSystemAudioModeStatusTimeout();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user