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

Commit 3c518a3b authored by Francois Gaffie's avatar Francois Gaffie
Browse files

[BUG] AudioService: PlaybackActivityMonitor: fix exploding list



This CL fixes the growing list of Playback Monitor client by
comparing the cb.asBinder() object to correctly find
the previous registration.

Test: todo

Signed-off-by: default avatarFrancois Gaffie <francois.gaffie@renault.com>
Change-Id: Ib4ad166f584fe60c2a1e5721f3ab51e9a4151d41
parent fdd15ef6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -779,7 +779,7 @@ public final class PlaybackActivityMonitor
            // the same time if we still have a public client.
            while (clientIterator.hasNext()) {
                PlayMonitorClient pmc = clientIterator.next();
                if (pcdb.equals(pmc.mDispatcherCb)) {
                if (pcdb.asBinder().equals(pmc.mDispatcherCb.asBinder())) {
                    pmc.release();
                    clientIterator.remove();
                } else {