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

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

Change-Id: I012d2e9a4aa1e13d0f7b7f53ecd770b81f5c917e
This commit is contained in:
Treehugger Robot
2020-06-05 05:56:46 +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);