mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
fix: crash when trying to play downloaded video offline
This commit is contained in:
parent
40c885316d
commit
a65ffd5f55
@ -1436,7 +1436,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun shouldStartPiP(): Boolean {
|
private fun shouldStartPiP(): Boolean {
|
||||||
return shouldUsePip() && playerController.isPlaying &&
|
return shouldUsePip() && ::playerController.isInitialized && playerController.isPlaying &&
|
||||||
!BackgroundHelper.isBackgroundServiceRunning(requireContext())
|
!BackgroundHelper.isBackgroundServiceRunning(requireContext())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user