[Notification] Fixed notification not updating when Classic Notification is toggled

This commit is contained in:
Prathamesh More 2021-12-06 15:50:34 +05:30
parent 8a181607be
commit c81015905e

View file

@ -938,8 +938,9 @@ public class MusicService extends MediaBrowserServiceCompat
updateNotification();
break;
case CLASSIC_NOTIFICATION:
initNotification();
updateNotification();
playingNotification.setPlaying(isPlaying());
playingNotification.updateMetadata(getCurrentSong(), this::startForegroundOrNotify);
break;
case TOGGLE_HEADSET:
registerHeadsetEvents();