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

Commit 8c18c0cd authored by Sungsoo Lim's avatar Sungsoo Lim Committed by Automerger Merge Worker
Browse files

DO NOT MERGE: Use TextUtils.equals instead of "==" am: 5f931d41 am: 0d3224d5

parents 0a1a6dc1 0d3224d5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ import android.media.AudioManager;
import android.os.Looper;
import android.os.SystemProperties;
import android.os.UserManager;
import android.text.TextUtils;
import android.util.Log;

import com.android.bluetooth.BluetoothMetricsProto;
@@ -408,7 +409,7 @@ public class AvrcpTargetService extends ProfileService {
        List<Metadata> nowPlayingList = mMediaPlayerList.getNowPlayingList();
        if (mAvrcpCoverArtService != null) {
            for (Metadata metadata : nowPlayingList) {
                if (metadata.mediaId == currentMediaId) {
                if (TextUtils.equals(metadata.mediaId, currentMediaId)) {
                    currentTrack = metadata;
                } else if (metadata.image != null) {
                    imageHandle = mAvrcpCoverArtService.storeImage(metadata.image);