Merge pull request #257 from Bnyro/master

Settings Player Fix
This commit is contained in:
Bnyro 2022-05-20 14:16:24 +02:00 committed by GitHub
commit 11b1c54dea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -261,6 +261,7 @@ class PlayerFragment : Fragment() {
} }
override fun onStop() { override fun onStop() {
exoPlayer.release()
super.onStop() super.onStop()
} }
@ -268,6 +269,7 @@ class PlayerFragment : Fragment() {
super.onDestroy() super.onDestroy()
try { try {
exoPlayer.stop() exoPlayer.stop()
exoPlayer.release()
} catch (e: Exception) { } catch (e: Exception) {
} }
} }