mirror of
https://github.com/videolan/vlc-android
synced 2024-12-03 23:06:21 +08:00
Prevent an IllegalStateException crash in the remote access onboarding
This commit is contained in:
parent
69a4d8eb37
commit
c19292f62d
@ -64,9 +64,12 @@ class RemoteAccessOnboardingContentFragment : RemoteAccessOnboardingFragment() {
|
||||
animationLoop.playSequentially(appearingSets.toMutableList() as List<Animator>?)
|
||||
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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user