mirror of
https://github.com/videolan/vlc-android
synced 2024-12-04 15:23:51 +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.playSequentially(appearingSets.toMutableList() as List<Animator>?)
|
||||||
animationLoop.doOnEnd {
|
animationLoop.doOnEnd {
|
||||||
lifecycleScope.launch {
|
lifecycleScope.launch {
|
||||||
viewLifecycleOwner.repeatOnLifecycle(Lifecycle.State.STARTED) {
|
try {
|
||||||
delay(2000)
|
viewLifecycleOwner.repeatOnLifecycle(Lifecycle.State.STARTED) {
|
||||||
animationLoop.start()
|
delay(2000)
|
||||||
|
animationLoop.start()
|
||||||
|
}
|
||||||
|
} catch (_: IllegalStateException) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user