mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
Merge pull request #4917 from Bnyro/master
fix: chapters stop working when starting different video
This commit is contained in:
commit
b67d22e0ae
@ -642,7 +642,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
|||||||
override fun onDestroy() {
|
override fun onDestroy() {
|
||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
|
|
||||||
viewModel.player = null
|
if (viewModel.player == exoPlayer) viewModel.player = null
|
||||||
|
|
||||||
if (this::exoPlayer.isInitialized) exoPlayer.pause()
|
if (this::exoPlayer.isInitialized) exoPlayer.pause()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user