mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
fix: chapters stop working when starting different video
This commit is contained in:
parent
064c5279a6
commit
770bb0e39f
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user