setup settings debug navigation

This commit is contained in:
Ida Delphine
2026-10-17 22:14:17 +02:00
committed by Tobi
parent c025a552d0
commit b0ee727297
3 changed files with 12 additions and 0 deletions
@@ -14,6 +14,9 @@ import kotlinx.serialization.Serializable
@Serializable
sealed interface Destination : NavKey {
@Serializable
data object DebugSettings : Destination
@Serializable
data object PlayerSettings : Destination
@@ -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<Destination.PlayerSettings> {
PlayerSettingsScreen()
}
navigation<Destination.DebugSettings> {
DebugSettingsScreen()
}
}
/**
@@ -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
}