mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 15:30:31 +05:30
Merge pull request #7004 from Bnyro/master
fix: update play pause button on screen rotation
This commit is contained in:
commit
7181c8f576
@ -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