2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-09-03 15:45:10 +00:00

[mpris] Remove workarounds for Spotify

It looks like Spotify fixed its MPRIS impl and these things are no longer broken

There's no need to hide them from the UI any more
This commit is contained in:
Nicolas Fella
2022-06-27 21:27:11 +02:00
parent edc655da5a
commit cf94436208

View File

@@ -120,7 +120,7 @@ public class MprisPlugin extends Plugin {
}
public boolean isSeekAllowed() {
return seekAllowed && getLength() >= 0 && getPosition() >= 0 && !isSpotify();
return seekAllowed && getLength() >= 0 && getPosition() >= 0;
}
public boolean hasAlbumArt() {
@@ -142,15 +142,15 @@ public class MprisPlugin extends Plugin {
}
public boolean isLoopStatusAllowed() {
return loopStatusAllowed && !isSpotify();
return loopStatusAllowed;
}
public boolean isShuffleAllowed() {
return shuffleAllowed && !isSpotify();
return shuffleAllowed;
}
public boolean isSetVolumeAllowed() {
return !isSpotify() && (getVolume() > -1);
return getVolume() > -1;
}
public long getPosition() {