fix: Keep the screen on while media is playing (#422)

Fixes #335
This commit is contained in:
Nik Clayton 2024-02-06 14:13:09 +01:00 committed by GitHub
parent 75f75a7fc6
commit 9a47e306ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -228,6 +228,8 @@ class ViewVideoFragment : ViewMediaFragment() {
}
override fun onIsPlayingChanged(isPlaying: Boolean) {
binding.videoView.keepScreenOn = isPlaying
if (isAudio) return
if (isPlaying) {
hideToolbarAfterDelay()