Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bbfca33e authored by Kyeongkab.Nam's avatar Kyeongkab.Nam
Browse files

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
parent b65aca27
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -50,8 +50,7 @@ final class SystemAudioAutoInitiationAction extends HdmiCecFeatureAction {
            @Override
            public void onSendCompleted(int error) {
                if (error != SendMessageResult.SUCCESS) {
                    tv().setSystemAudioMode(false);
                    finish();
                    handleSystemAudioModeStatusTimeout();
                }
            }
        });