diff --git a/application/webserver/src/main/java/org/videolan/vlc/webserver/gui/remoteaccess/onboarding/RemoteAccessOnboardingContentFragment.kt b/application/webserver/src/main/java/org/videolan/vlc/webserver/gui/remoteaccess/onboarding/RemoteAccessOnboardingContentFragment.kt index be87f0ede..78b459489 100644 --- a/application/webserver/src/main/java/org/videolan/vlc/webserver/gui/remoteaccess/onboarding/RemoteAccessOnboardingContentFragment.kt +++ b/application/webserver/src/main/java/org/videolan/vlc/webserver/gui/remoteaccess/onboarding/RemoteAccessOnboardingContentFragment.kt @@ -64,9 +64,12 @@ class RemoteAccessOnboardingContentFragment : RemoteAccessOnboardingFragment() { animationLoop.playSequentially(appearingSets.toMutableList() as List?) animationLoop.doOnEnd { lifecycleScope.launch { - viewLifecycleOwner.repeatOnLifecycle(Lifecycle.State.STARTED) { - delay(2000) - animationLoop.start() + try { + viewLifecycleOwner.repeatOnLifecycle(Lifecycle.State.STARTED) { + delay(2000) + animationLoop.start() + } + } catch (_: IllegalStateException) { } } }