[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(); updateNotification();
break; break;
case CLASSIC_NOTIFICATION: case CLASSIC_NOTIFICATION:
initNotification();
updateNotification(); updateNotification();
playingNotification.setPlaying(isPlaying());
playingNotification.updateMetadata(getCurrentSong(), this::startForegroundOrNotify);
break; break;
case TOGGLE_HEADSET: case TOGGLE_HEADSET:
registerHeadsetEvents(); registerHeadsetEvents();