diff --git a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt index 905b3d2f0..1f70bbba3 100644 --- a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt @@ -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()