Merge pull request #4917 from Bnyro/master

fix: chapters stop working when starting different video
This commit is contained in:
Bnyro 2023-10-06 17:49:03 +02:00 committed by GitHub
commit b67d22e0ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -642,7 +642,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
override fun onDestroy() {
super.onDestroy()
viewModel.player = null
if (viewModel.player == exoPlayer) viewModel.player = null
if (this::exoPlayer.isInitialized) exoPlayer.pause()