2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 13:47:41 +00:00

Don't close notification for last player if not playing

This commit is contained in:
Nicolas Fella
2019-05-01 00:53:11 +02:00
parent 9f005b508a
commit d950266431

View File

@@ -196,7 +196,7 @@ public class MprisMediaSession implements SharedPreferences.OnSharedPreferenceCh
Device device = service.getDevice(notificationDevice);
if (device != null && device.isPluginEnabled("MprisPlugin")) {
if (shouldShowPlayer(notificationPlayer) && notificationPlayer.isPlaying()){
if (shouldShowPlayer(notificationPlayer)){
return new Pair<>(device, notificationPlayer);
}