mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
fix: crash when the app was closed for a while
This commit is contained in:
parent
d1979c21e0
commit
0b40039e96
@ -639,8 +639,9 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
|||||||
|
|
||||||
viewModel.player = null
|
viewModel.player = null
|
||||||
|
|
||||||
|
if (this::exoPlayer.isInitialized) exoPlayer.pause()
|
||||||
|
|
||||||
// disable the auto PiP mode for SDK >= 32
|
// disable the auto PiP mode for SDK >= 32
|
||||||
exoPlayer.pause()
|
|
||||||
if (PlayerHelper.pipEnabled) {
|
if (PlayerHelper.pipEnabled) {
|
||||||
PictureInPictureCompat.setPictureInPictureParams(
|
PictureInPictureCompat.setPictureInPictureParams(
|
||||||
requireActivity(),
|
requireActivity(),
|
||||||
|
Loading…
Reference in New Issue
Block a user