diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/components/VideoView.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/components/VideoView.kt index 5bd52a24c..db77802af 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/components/VideoView.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/components/VideoView.kt @@ -324,10 +324,6 @@ fun GetVideoController( } } - controller.value?.let { - inner(it, keepPlaying) - } - // User pauses and resumes the app. What to do with videos? val scope = rememberCoroutineScope() val lifeCycleOwner = LocalLifecycleOwner.current @@ -392,6 +388,10 @@ fun GetVideoController( } } } + + controller.value?.let { + inner(it, keepPlaying) + } } // background playing mutex.