Merge pull request #7004 from Bnyro/master

fix: update play pause button on screen rotation
This commit is contained in:
Bnyro 2025-01-22 18:32:08 +01:00 committed by GitHub
commit 7181c8f576
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -184,6 +184,12 @@ abstract class CustomExoPlayerView(
}
})
player?.let { player ->
binding.playPauseBTN.setImageResource(
PlayerHelper.getPlayPauseActionIcon(player)
)
}
player?.let { binding.exoProgress.setPlayer(it) }
// prevent the controls from disappearing while scrubbing the time bar
binding.exoProgress.addSeekBarListener(object : TimeBar.OnScrubListener {