INNER CODE UNIT · Kotlin

SettingsDebugScreen

komikku-app/komikku · app/src/main/java/exh/debug/SettingsDebugScreen.kt:69

class SettingsDebugScreen : Screen() {

    data class DebugToggle(val name: String, val pref: PreferenceMutableState<Boolean>, val default: Boolean)

    @Composable
    override fun Content() {
        val scope = rememberCoroutineScope()
        // KMK -->
        // val navigator = LocalNavigator.currentOrThrow
        // DisposableEffect(Unit) {
        //     onDispose { navigator.pop() }
        // }
        // KMK <--
        val functions by produceState<ImmutableList<Pair<KFunction<*>, String>>?>(initialValue = null) {
            value = withContext(Dispatchers.Default) {
                DebugFunctions::class.declaredFunctions.filter {
                    it.visibility == KVisibility.PUBLIC
                }.map {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…