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 4785d2d728a9..e0e5da728684 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 @@ -573,6 +573,12 @@ class PreviewMediaFragment : FileFragment(), OnTouchListener, Injectable { super.onDetach() } + override fun onPause() { + exoPlayer?.pause() + releaseVideoPlayer() + super.onPause() + } + companion object { private val TAG: String = PreviewMediaFragment::class.java.simpleName