This commit is contained in:
Bnyro 2022-05-25 09:57:12 +02:00
parent 5dfa2874f7
commit c67e23e646

View File

@ -68,6 +68,7 @@ import com.google.android.exoplayer2.util.RepeatModeUtil
import com.google.android.material.button.MaterialButton
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.squareup.picasso.Picasso
import org.chromium.base.ThreadUtils.runOnUiThread
import java.io.IOException
import java.net.URLEncoder
import java.util.concurrent.Executors
@ -297,7 +298,7 @@ class PlayerFragment : Fragment() {
override fun onStop() {
try {
exoPlayer.pause()
// exoPlayer.pause() // breaks background play
} catch (e: Exception) {
}
super.onStop()