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:
Kyeongkab.Nam
2018-09-14 15:23:03 +09:00
parent b65aca27af
commit bbfca33e24

View File

@@ -50,8 +50,7 @@ final class SystemAudioAutoInitiationAction extends HdmiCecFeatureAction {
@Override
public void onSendCompleted(int error) {
if (error != SendMessageResult.SUCCESS) {
tv().setSystemAudioMode(false);
finish();
handleSystemAudioModeStatusTimeout();
}
}
});