Fix a small bug in togglePlayPause()
This commit is contained in:
parent
3ca25ed1c6
commit
e5021959c3
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue