Commit abba7f11 authored by Erik Duisters's avatar Erik Duisters
Browse files

Do not continue displaying the previous track's album art image when the new...

Do not continue displaying the previous track's album art image when the new track's albumArtUrl is empty

Summary:
When a new track starts playing and does not have album art the previously displayed
album art image will be displayed until a new track starts playing that does have
album art

Test Plan:
Before applying this patch play a track that has album art followed by a song
that does not have album art. Notice that when the track without album art starts
playing the album art of the previous track is still displayed

Apply patch, repeat previous test and notice that the album art placeholder is displayed
when the track without album art start playing

Reviewers: #kde_connect, nicolasfella

Reviewed By: #kde_connect, nicolasfella

Subscribers: kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D17875
parent 9fb780f9
......@@ -298,6 +298,7 @@ public class MprisPlugin extends Plugin {
URL newAlbumArtUrl = new URL(newAlbumArtUrlstring);
playerStatus.albumArtUrl = newAlbumArtUrl.toString();
} catch (MalformedURLException ignored) {
playerStatus.albumArtUrl = "";
}
for (String key : playerStatusUpdated.keySet()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment