Fix music sync with info/cover/notification

This commit is contained in:
CappielloAntonio 2021-04-13 18:13:22 +02:00
parent dfc10c76ca
commit c0088ff224
10 changed files with 132 additions and 51 deletions

View file

@ -118,7 +118,7 @@ public class MusicPlayerRemote {
public static void playNextSong() {
if (musicService != null) {
musicService.playNextSong(true);
musicService.playNextSong();
}
}
@ -170,6 +170,14 @@ public class MusicPlayerRemote {
return false;
}
public static Song getCurrentSong() {
if (musicService != null) {
return musicService.getCurrentSong();
}
return null;
}
public static int getPosition() {
if (musicService != null) {
return musicService.getPosition();