2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-22 09:58:08 +00:00
This commit is contained in:
Albert Vaca Cintora 2025-01-25 10:58:44 +01:00
parent 144d292948
commit d951e3faad
No known key found for this signature in database

View File

@ -280,8 +280,10 @@ public class MprisReceiverPlugin extends Plugin {
np.set("canSeek", player.canSeek());
np.set("volume", player.getVolume());
MprisReceiverCallback cb = playerCbs.get(player.getName());
assert cb != null;
String artUrl = cb.getArtUrl();
String artUrl = null;
if (cb != null) {
artUrl = cb.getArtUrl();
}
if (artUrl != null) {
np.set("albumArtUrl", artUrl);
Log.v(TAG, "Sending metadata with url " + artUrl);