Merge "Remove mute key if no Report Audio Status received." am: 0156e0518c am: d42536b334 am: b74d3b4dfc am: 2bd1a0bbd0 am: 85bf46fcfc

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/968228

Change-Id: I35cc834aa1aa8d2280ac2cc58fe359e3592d9bda
This commit is contained in:
Treehugger Robot
2020-06-05 06:11:12 +00:00
committed by Automerger Merge Worker

View File

@@ -64,12 +64,6 @@ final class SystemAudioStatusAction extends HdmiCecFeatureAction {
}
private void handleSendGiveAudioStatusFailure() {
// Inform to all application that the audio status (volume, mute) of
// the audio amplifier is unknown.
tv().setAudioStatus(false, Constants.UNKNOWN_VOLUME);
sendUserControlPressedAndReleased(mAvrAddress,
HdmiCecKeycode.getMuteKey(!tv().isSystemAudioActivated()));
// Still return SUCCESS to callback.
finishWithCallback(HdmiControlManager.RESULT_SUCCESS);