Fix a small bug in togglePlayPause()
This commit is contained in:
parent
3ca25ed1c6
commit
e5021959c3
|
@ -289,7 +289,7 @@ class MediaPlayerController(
|
|||
@Synchronized
|
||||
fun togglePlayPause() {
|
||||
if (playbackState == Player.STATE_IDLE) autoPlayStart = true
|
||||
if (controller?.isPlaying == false) {
|
||||
if (controller?.isPlaying == true) {
|
||||
controller?.pause()
|
||||
} else {
|
||||
controller?.play()
|
||||
|
|
Loading…
Reference in New Issue