summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nathalie Le Clair <lcnathalie@google.com> 2022-06-27 14:19:40 +0200
committer Nathalie Le Clair <lcnathalie@google.com> 2022-06-27 13:26:23 +0000
commita8299cd523d6e51fd5592f16c0012c3eff68b702 (patch)
tree7104ec737d73f450250b3ebc647f15af153490ec
parentc3366d44bf6bb49eed601ff5605ee17e527aa4a3 (diff)
Remove ActiveSourceAction immediately on standby
If not, the device may still send <Active Source messages for a short period of time while already going to standby. This may confuse other devices, as devices in standby cannot be the active source. Test: manual Bug: 230189461 Change-Id: I547c47a36311bcf91467680d45b9d24dc3ed1e94
-rwxr-xr-xservices/core/java/com/android/server/hdmi/HdmiCecLocalDevice.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/hdmi/HdmiCecLocalDevice.java b/services/core/java/com/android/server/hdmi/HdmiCecLocalDevice.java
index 16bffd9a597b..1de1a7a5e1e5 100755
--- a/services/core/java/com/android/server/hdmi/HdmiCecLocalDevice.java
+++ b/services/core/java/com/android/server/hdmi/HdmiCecLocalDevice.java
@@ -1262,6 +1262,7 @@ abstract class HdmiCecLocalDevice {
boolean initiatedByCec, final PendingActionClearedCallback originalCallback) {
removeAction(AbsoluteVolumeAudioStatusAction.class);
removeAction(SetAudioVolumeLevelDiscoveryAction.class);
+ removeAction(ActiveSourceAction.class);
mPendingActionClearedCallback =
new PendingActionClearedCallback() {