Only notify of new cover art assignement for the active device

Bug: b/152655407
Test: atest BluetoothInstrumentationTests
Change-Id: I82bd28ced0984bebe80c3a573776125a140312fe
Merged-In: I82bd28ced0984bebe80c3a573776125a140312fe
diff --git a/android/app/src/com/android/bluetooth/avrcpcontroller/AvrcpControllerStateMachine.java b/android/app/src/com/android/bluetooth/avrcpcontroller/AvrcpControllerStateMachine.java
index df92ad7..56d8780 100755
--- a/android/app/src/com/android/bluetooth/avrcpcontroller/AvrcpControllerStateMachine.java
+++ b/android/app/src/com/android/bluetooth/avrcpcontroller/AvrcpControllerStateMachine.java
@@ -502,7 +502,7 @@
                     // Let the addressed player know we got an image so it can see if the current
                     // track now has cover artwork
                     boolean addedArtwork = mAddressedPlayer.notifyImageDownload(handle, uri);
-                    if (addedArtwork) {
+                    if (addedArtwork && isActive()) {
                         BluetoothMediaBrowserService.trackChanged(
                                 mAddressedPlayer.getCurrentTrack());
                     }