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

Commit d34beae5 authored by ot_linyl.yang's avatar ot_linyl.yang Committed by Cherrypicker Worker
Browse files

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
parent e32e28c7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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");
        }
    }