mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-05-29 21:10:20 +02:00
fix(ui/setup): state concurrent
Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com>
This commit is contained in:
parent
844094aca0
commit
3f02023580
@ -135,8 +135,8 @@ class PermissionsScreen : SetupScreen() {
|
|||||||
|
|
||||||
OnLifecycleEvent { _, event ->
|
OnLifecycleEvent { _, event ->
|
||||||
if (event != Lifecycle.Event.ON_RESUME) return@OnLifecycleEvent
|
if (event != Lifecycle.Event.ON_RESUME) return@OnLifecycleEvent
|
||||||
updateState()
|
|
||||||
coroutineScope.launch {
|
coroutineScope.launch {
|
||||||
|
updateState()
|
||||||
delay(1000)
|
delay(1000)
|
||||||
updateState()
|
updateState()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user