Merge pull request #2961 from Bnyro/master

Improve double tap on center of player
This commit is contained in:
Bnyro 2023-02-04 11:18:47 +01:00 committed by GitHub
commit 3565b72afc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -618,10 +618,8 @@ internal class CustomExoPlayerView(
player?.let { player ->
if (player.isPlaying) {
player.pause()
if (!isControllerFullyVisible) showController()
} else {
player.play()
if (isControllerFullyVisible) hideController()
}
}
}