mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
commit
7f2440bf0e
@ -753,9 +753,11 @@ class PlayerFragment : BaseFragment() {
|
||||
exoPlayer.prepare()
|
||||
exoPlayer.play()
|
||||
|
||||
if (SDK_INT >= Build.VERSION_CODES.O) {
|
||||
if (binding.playerMotionLayout.progress != 1.0f) {
|
||||
// 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
|
||||
initializePlayerNotification()
|
||||
|
Loading…
Reference in New Issue
Block a user