mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
fix exo controllers
This commit is contained in:
parent
04b171b99a
commit
efd95d95c3
@ -753,9 +753,11 @@ class PlayerFragment : BaseFragment() {
|
|||||||
exoPlayer.prepare()
|
exoPlayer.prepare()
|
||||||
exoPlayer.play()
|
exoPlayer.play()
|
||||||
|
|
||||||
if (SDK_INT >= Build.VERSION_CODES.O) {
|
if (binding.playerMotionLayout.progress != 1.0f) {
|
||||||
// show controllers when not in picture in picture mode
|
// show controllers when not in picture in picture mode
|
||||||
if (!activity?.isInPictureInPictureMode!!) exoPlayerView.useController = true
|
if (!(SDK_INT >= Build.VERSION_CODES.O && activity?.isInPictureInPictureMode!!)) {
|
||||||
|
exoPlayerView.useController = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// show the player notification
|
// show the player notification
|
||||||
initializePlayerNotification()
|
initializePlayerNotification()
|
||||||
|
Loading…
Reference in New Issue
Block a user