diff --git a/app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaFragment.kt b/app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaFragment.kt index f939dbf8ecfc..d002fe6649e1 100644 --- a/app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaFragment.kt +++ b/app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaFragment.kt @@ -676,6 +676,13 @@ class PreviewMediaFragment : FileFragment(), OnTouchListener, Injectable { super.onDetach() } + override fun onPause() { + mediaPlayerServiceConnection?.pause() + exoPlayer?.pause() + + super.onPause() + } + companion object { private val TAG: String = PreviewMediaFragment::class.java.simpleName