Fix a small bug in togglePlayPause()

This commit is contained in:
tzugen 2022-04-08 21:24:04 +02:00
parent 3ca25ed1c6
commit e5021959c3
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ class MediaPlayerController(
@Synchronized @Synchronized
fun togglePlayPause() { fun togglePlayPause() {
if (playbackState == Player.STATE_IDLE) autoPlayStart = true if (playbackState == Player.STATE_IDLE) autoPlayStart = true
if (controller?.isPlaying == false) { if (controller?.isPlaying == true) {
controller?.pause() controller?.pause()
} else { } else {
controller?.play() controller?.play()