Merge pull request #6842 from Bnyro/master

fix: crash when trying to play downloaded video offline
This commit is contained in:
Bnyro 2024-12-02 20:49:36 +01:00 committed by GitHub
commit fabcdc02a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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