mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
commit
11b1c54dea
@ -261,6 +261,7 @@ class PlayerFragment : Fragment() {
|
||||
}
|
||||
|
||||
override fun onStop() {
|
||||
exoPlayer.release()
|
||||
super.onStop()
|
||||
}
|
||||
|
||||
@ -268,6 +269,7 @@ class PlayerFragment : Fragment() {
|
||||
super.onDestroy()
|
||||
try {
|
||||
exoPlayer.stop()
|
||||
exoPlayer.release()
|
||||
} catch (e: Exception) {
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user