mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 06:40:30 +05:30
commit
7f2440bf0e
@ -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