mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 15:30:31 +05:30
fix: update play pause button on screen rotation
This commit is contained in:
parent
5aced20fe9
commit
3aa6242870
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user