diff options
| author | 2024-12-19 06:36:36 -0800 | |
|---|---|---|
| committer | 2024-12-19 06:36:36 -0800 | |
| commit | d34beae51c81341e4a172e321c6ad4325329106a (patch) | |
| tree | 3fc48671fdfaaf2f60b95a660b143f35dbe9dfb4 | |
| parent | e32e28c7cfd418b45760231eb47e6b882e15aea4 (diff) | |
Fix can't get top communication Route client AttributionSource
Game of Glory starts to form a team or plays other sounds, it will change itself to Active state.After stopping,the music will be played silently.
Bug: 383976665
Test: run MTBF test pass
Merged-In: Ifed5b93dedb5a99b10aebcce475d46765713261a
Change-Id: Ifed5b93dedb5a99b10aebcce475d46765713261a
| -rw-r--r-- | services/core/java/com/android/server/audio/AudioDeviceBroker.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/audio/AudioDeviceBroker.java b/services/core/java/com/android/server/audio/AudioDeviceBroker.java index a3b20b93ef02..4ec813827cbc 100644 --- a/services/core/java/com/android/server/audio/AudioDeviceBroker.java +++ b/services/core/java/com/android/server/audio/AudioDeviceBroker.java @@ -635,7 +635,8 @@ public class AudioDeviceBroker { client.setPlaybackActive(mAudioService.isPlaybackActiveForUid(client.getUid())); client.setRecordingActive(mAudioService.isRecordingActiveForUid(client.getUid())); if (wasActive != client.isActive()) { - postUpdateCommunicationRouteClient(bluetoothScoRequestOwnerAttributionSource(), + postUpdateCommunicationRouteClient(wasActive ? + client.getAttributionSource() : null, "updateCommunicationRouteClientState"); } } |