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

Commit c2bacb82 authored by Jack He's avatar Jack He Committed by android-build-merger
Browse files

AVRCP: Fix deadlock between Avrcp.this and mMediaPlayerInfoList

am: 1f05d571

Change-Id: Ifa309379572c44740849e43af430e66fa6206cd0
parents 3758289d 1f05d571
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -1845,12 +1845,11 @@ public final class Avrcp {
                mAvailablePlayerViewChanged = true;
            }
            mMediaPlayerInfoList.put(updateId, info);
            if (DEBUG)
                Log.d(TAG, (updated ? "update #" : "add #") + updateId + ":" + info.toString());
        }
        if (DEBUG) Log.d(TAG, (updated ? "update #" : "add #") + updateId + ":" + info.toString());
        if (currentRemoved || updateId == mCurrAddrPlayerID) {
            updateCurrentController(updateId, mCurrBrowsePlayerID);
        }
        }
        return updated;
    }