Add comment about splashScreen.setKeepOnScreenCondition

pull/330/head
Don Turner 2 years ago
parent 5e4100fafc
commit f59da72383

@ -76,7 +76,9 @@ class MainActivity : ComponentActivity() {
} }
} }
// Keep the splash screen on-screen until the user data is loaded // Keep the splash screen on-screen until the UI state is loaded. This condition is
// evaluated each time the app needs to be redrawn so it should be fast to avoid blocking
// the UI.
splashScreen.setKeepOnScreenCondition { splashScreen.setKeepOnScreenCondition {
when (uiState) { when (uiState) {
Loading -> true Loading -> true

Loading…
Cancel
Save