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

Commit 579c5117 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

Fix PlaybackActivityMonitor unmute path

Clear the list of muted played after iterating over it.

Test: see repro test in b/35229719
Bug 35229719

Change-Id: I2e9860f8afbb625933091e45ea705903c74d629e
parent 9df81dc2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -359,12 +359,12 @@ public final class PlaybackActivityMonitor
                    try {
                        if (DEBUG) { Log.v(TAG, "unmuting player" + piid); }
                        apc.getPlayerProxy().setVolume(1.0f);
                        mMutedPlayers.remove(new Integer(piid));
                    } catch (Exception e) {
                        Log.e(TAG, "Error unmuting player " + piid, e);
                    }
                }
            }
            mMutedPlayers.clear();
        }
    }