mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 05:40:31 +05:30
Merge pull request #6842 from Bnyro/master
fix: crash when trying to play downloaded video offline
This commit is contained in:
commit
fabcdc02a6
@ -1436,7 +1436,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
||||
}
|
||||
|
||||
private fun shouldStartPiP(): Boolean {
|
||||
return shouldUsePip() && playerController.isPlaying &&
|
||||
return shouldUsePip() && ::playerController.isInitialized && playerController.isPlaying &&
|
||||
!BackgroundHelper.isBackgroundServiceRunning(requireContext())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user