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

Commit 5f931d41 authored by Sungsoo Lim's avatar Sungsoo Lim
Browse files

DO NOT MERGE: Use TextUtils.equals instead of "=="

Bug: 215717268
Tag: #refactor
Test: atest CtsBluetoothTestCases bluetooth_test_gd_unit
Change-Id: Ia680c9b07e4940b9d52133e926c569838c3fd7ff
Merged-In: Ia680c9b07e4940b9d52133e926c569838c3fd7ff
parent dbfcbbda
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);