diff --git a/app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaActivity.kt b/app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaActivity.kt index 1d5d3e4e4c6d..62876683955d 100644 --- a/app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaActivity.kt +++ b/app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaActivity.kt @@ -755,7 +755,11 @@ class PreviewMediaActivity : } } - exoPlayer?.pause() + + if (exoPlayer?.isPlaying == true) { + exoPlayer?.pause() + } + stopAudio() mediaPlayerServiceConnection?.unbind() super.onStop()