Merge pull request #4797 from FineFindus/fix/play-button

fix(player): allow pausing while loading
This commit is contained in:
Bnyro 2023-09-17 14:59:06 +02:00 committed by GitHub
commit bd316603f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ fun Player.togglePlayPauseState() {
seekTo(0) seekTo(0)
} }
!isPlaying && !isLoading -> play() !isPlaying && totalBufferedDuration > 0 -> play()
else -> pause() else -> pause()
} }
} }