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

Commit 99fb57b2 authored by Shunkai Yao's avatar Shunkai Yao Committed by Android (Google) Code Review
Browse files

Merge "MusicFxHelper: avoid modify AudioSession list while iterating" into main

parents 1d9e877e 5cf0f4b2
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -157,7 +157,8 @@ public class MusicFxHelper {
            Log.w(TAG, " inside handle MSG_EFFECT_CLIENT_GONE");
            Log.w(TAG, " inside handle MSG_EFFECT_CLIENT_GONE");
            // Once the uid is no longer running, close all remain audio session(s) for this UID
            // Once the uid is no longer running, close all remain audio session(s) for this UID
            if (mClientUidSessionMap.get(Integer.valueOf(uid)) != null) {
            if (mClientUidSessionMap.get(Integer.valueOf(uid)) != null) {
                final List<Integer> sessions = mClientUidSessionMap.get(Integer.valueOf(uid));
                final List<Integer> sessions =
                        new ArrayList(mClientUidSessionMap.get(Integer.valueOf(uid)));
                Log.i(TAG, "UID " + uid + " gone, closing " + sessions.size() + " sessions");
                Log.i(TAG, "UID " + uid + " gone, closing " + sessions.size() + " sessions");
                for (Integer session : sessions) {
                for (Integer session : sessions) {
                    Intent intent = new Intent(
                    Intent intent = new Intent(