fix exo controllers

This commit is contained in:
Bnyro 2022-09-12 15:07:21 +02:00
parent 04b171b99a
commit efd95d95c3

View File

@ -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()