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

Commit 339be7fd authored by Sal Savage's avatar Sal Savage Committed by Automerger Merge Worker
Browse files

Merge "Compare image handles with equals() and not ==" am: b6c98b30

Change-Id: I3d6234079186779d3d9cc6d0c42b0e247c2411aa
parents 51067538 b6c98b30
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -187,8 +187,10 @@ class AvrcpPlayer {

    public synchronized boolean notifyImageDownload(String handle, Uri imageUri) {
        if (DBG) Log.d(TAG, "Got an image download -- handle=" + handle + ", uri=" + imageUri);
        if (mCurrentTrack != null && mCurrentTrack.getCoverArtHandle() == handle) {
        if (handle == null || imageUri == null || mCurrentTrack == null) return false;
        if (handle.equals(mCurrentTrack.getCoverArtHandle())) {
            mCurrentTrack.setCoverArtLocation(imageUri);
            if (DBG) Log.d(TAG, "Handle '" + handle + "' was added to current track.");
            return true;
        }
        return false;