Merge pull request #5079 from ByteHamster/update-play-icon

Update play icon when service is stopped
This commit is contained in:
ByteHamster 2021-04-02 18:31:33 +02:00 committed by GitHub
commit ae71d17f0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

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