Update play icon when service is stopped

This commit is contained in:
ByteHamster 2021-04-02 18:14:03 +02:00
parent d6e0799a21
commit 1d8d3203d4

View File

@ -210,6 +210,9 @@ public abstract class PlaybackController {
Log.w(TAG, "Couldn't receive status update: playbackService was null"); Log.w(TAG, "Couldn't receive status update: playbackService was null");
if (PlaybackService.isRunning) { if (PlaybackService.isRunning) {
bindToService(); bindToService();
} else {
status = PlayerStatus.STOPPED;
handleStatus();
} }
} }
} }
@ -359,6 +362,7 @@ public abstract class PlaybackController {
} }
break; break;
case STOPPED: case STOPPED:
updatePlayButtonAppearance(playResource, playText);
break; break;
case PREPARED: case PREPARED:
checkMediaInfoLoaded(); checkMediaInfoLoaded();