From b0ee727297b9676a66283d814572db038ba596bc Mon Sep 17 00:00:00 2001 From: Ida Delphine Date: Thu, 8 Oct 2026 11:30:04 -0700 Subject: [PATCH] setup settings debug navigation --- .../kotlin/net/newpipe/app/navigation/Destination.kt | 3 +++ .../kotlin/net/newpipe/app/navigation/NavModule.kt | 5 +++++ .../net/newpipe/app/screen/settings/SettingsHomeScreen.kt | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/navigation/Destination.kt b/shared/src/commonMain/kotlin/net/newpipe/app/navigation/Destination.kt index f7a33b8f8..47868c170 100644 --- a/shared/src/commonMain/kotlin/net/newpipe/app/navigation/Destination.kt +++ b/shared/src/commonMain/kotlin/net/newpipe/app/navigation/Destination.kt @@ -14,6 +14,9 @@ import kotlinx.serialization.Serializable @Serializable sealed interface Destination : NavKey { + @Serializable + data object DebugSettings : Destination + @Serializable data object PlayerSettings : Destination diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/navigation/NavModule.kt b/shared/src/commonMain/kotlin/net/newpipe/app/navigation/NavModule.kt index 267befd74..da9648b88 100644 --- a/shared/src/commonMain/kotlin/net/newpipe/app/navigation/NavModule.kt +++ b/shared/src/commonMain/kotlin/net/newpipe/app/navigation/NavModule.kt @@ -9,6 +9,7 @@ import androidx.compose.runtime.mutableStateListOf import co.touchlab.kermit.Logger import net.newpipe.app.screen.about.AboutScreen import net.newpipe.app.screen.settings.AppearanceSettingsScreen +import net.newpipe.app.screen.settings.DebugSettingsScreen import net.newpipe.app.screen.settings.PlayerSettingsScreen import net.newpipe.app.screen.settings.SettingsHomeScreen import net.newpipe.app.screen.settings.VideoAudioSettingsScreen @@ -47,6 +48,10 @@ fun navModule() = module { navigation { PlayerSettingsScreen() } + + navigation { + DebugSettingsScreen() + } } /** diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/screen/settings/SettingsHomeScreen.kt b/shared/src/commonMain/kotlin/net/newpipe/app/screen/settings/SettingsHomeScreen.kt index 8385bce60..7df1903f4 100644 --- a/shared/src/commonMain/kotlin/net/newpipe/app/screen/settings/SettingsHomeScreen.kt +++ b/shared/src/commonMain/kotlin/net/newpipe/app/screen/settings/SettingsHomeScreen.kt @@ -60,6 +60,10 @@ fun SettingsHomeScreen( Destination.VideoAudioSettings ) + SettingsCategoryType.DEBUG -> navigator.navigateTo( + Destination.DebugSettings + ) + // TODO: wire remaining sub-screens as they are migrated else -> Unit }