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

Commit 1989cfc7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix crash when tracking audio resources by type." into main

parents 776ba264 560038ba
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -607,7 +607,8 @@ public class CallAudioWatchdog extends CallsManagerListenerBase {
                        Collections.emptySet());

                // Update the known sessions of this resource type in the CommunicationSession.
                Set<Integer> trackedSessions = session.getAudioResourcesByType().get(bit);
                Set<Integer> trackedSessions = putOrDefault(session.getAudioResourcesByType(), bit,
                        new ArraySet<>());
                trackedSessions.clear();
                trackedSessions.addAll(sessionsForThisUid);