Fixed a crash

main
Prathamesh More 2021-09-24 23:20:23 +05:30
parent ed2ca6c6fb
commit 2997095bb3
1 changed files with 3 additions and 1 deletions

View File

@ -1045,7 +1045,9 @@ public class MusicService extends MediaBrowserServiceCompat
if (playback != null && playback.isPlaying()) {
startFadeAnimator(playback, false, () -> {
//Code to run when Animator Ends
playback.pause();
if (playback != null) {
playback.pause();
}
notifyChange(PLAY_STATE_CHANGED);
});
}