mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-10-20 06:22:35 +00:00
setup settings debug navigation
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user