Fixed a crash
This commit is contained in:
parent
ed2ca6c6fb
commit
2997095bb3
1 changed files with 3 additions and 1 deletions
|
@ -1045,7 +1045,9 @@ public class MusicService extends MediaBrowserServiceCompat
|
||||||
if (playback != null && playback.isPlaying()) {
|
if (playback != null && playback.isPlaying()) {
|
||||||
startFadeAnimator(playback, false, () -> {
|
startFadeAnimator(playback, false, () -> {
|
||||||
//Code to run when Animator Ends
|
//Code to run when Animator Ends
|
||||||
playback.pause();
|
if (playback != null) {
|
||||||
|
playback.pause();
|
||||||
|
}
|
||||||
notifyChange(PLAY_STATE_CHANGED);
|
notifyChange(PLAY_STATE_CHANGED);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue