mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 06:05:12 +00:00
Don't close notification for last player if not playing
This commit is contained in:
@@ -196,7 +196,7 @@ public class MprisMediaSession implements SharedPreferences.OnSharedPreferenceCh
|
|||||||
Device device = service.getDevice(notificationDevice);
|
Device device = service.getDevice(notificationDevice);
|
||||||
|
|
||||||
if (device != null && device.isPluginEnabled("MprisPlugin")) {
|
if (device != null && device.isPluginEnabled("MprisPlugin")) {
|
||||||
if (shouldShowPlayer(notificationPlayer) && notificationPlayer.isPlaying()){
|
if (shouldShowPlayer(notificationPlayer)){
|
||||||
return new Pair<>(device, notificationPlayer);
|
return new Pair<>(device, notificationPlayer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user