2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-29 13:17:43 +00:00
This commit is contained in:
Albert Vaca Cintora 2023-03-07 15:41:49 +01:00
parent aae3518bb9
commit 54952f11a5

View File

@ -255,7 +255,7 @@ public class MprisNowPlayingFragment extends Fragment implements VolumeKeyListen
targetPlayer = mpris.getPlayerStatus(player);
updatePlayerStatus(mpris);
if (targetPlayer.isPlaying()) {
if (targetPlayer != null && targetPlayer.isPlaying()) {
MprisMediaSession.getInstance().playerSelected(targetPlayer);
}
}