mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
fix: pip controls don't work if auto-PiP is disabled
This commit is contained in:
parent
97708e2069
commit
217d671a34
@ -244,7 +244,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
|||||||
|
|
||||||
private val playerListener = object : Player.Listener {
|
private val playerListener = object : Player.Listener {
|
||||||
override fun onIsPlayingChanged(isPlaying: Boolean) {
|
override fun onIsPlayingChanged(isPlaying: Boolean) {
|
||||||
if (PlayerHelper.pipEnabled) {
|
if (PlayerHelper.pipEnabled || PictureInPictureCompat.isInPictureInPictureMode(mainActivity)) {
|
||||||
PictureInPictureCompat.setPictureInPictureParams(requireActivity(), pipParams)
|
PictureInPictureCompat.setPictureInPictureParams(requireActivity(), pipParams)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user