From 2b032b3e740f0d4068e307e87ea836699c8ad62f Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 20 May 2022 16:16:08 +0200 Subject: [PATCH] Settings Player Fix --- app/src/main/java/com/github/libretube/PlayerFragment.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/github/libretube/PlayerFragment.kt b/app/src/main/java/com/github/libretube/PlayerFragment.kt index 2b81cd46c..7be7f514b 100644 --- a/app/src/main/java/com/github/libretube/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/PlayerFragment.kt @@ -263,6 +263,7 @@ class PlayerFragment : Fragment() { } override fun onStop() { + exoPlayer.release() super.onStop() } @@ -270,6 +271,7 @@ class PlayerFragment : Fragment() { super.onDestroy() try { exoPlayer.stop() + exoPlayer.release() } catch (e: Exception) { } }