INNER CODE UNIT · Kotlin

save

Mahmud0808/Iconify · app/src/main/java/com/drdisagree/iconify/app/BaseMainActivity.kt:116

                save = { state ->
                    when (state) {
                        is AppState.Loading -> null
                        is AppState.Ready -> state.skipOnboarding
                    }
                },
                restore = { saved: Boolean -> AppState.Ready(saved) }
            )
        ) { mutableStateOf(AppState.Loading) }

        when (val state = appState) {
            is AppState.Loading -> {
                InitPreferences { state ->
                    appState = state
                }
            }

            is AppState.Ready -> {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…