fix: chapters stop working when starting different video

This commit is contained in:
Bnyro 2023-10-06 17:49:50 +02:00
parent 064c5279a6
commit 770bb0e39f

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