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 4d38b2ae0..9bedda404 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 ContentSettings : Destination + @Serializable data object HistorySettings : 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 15ea33eca..5215a030d 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.ContentSettingsScreen import net.newpipe.app.screen.settings.DebugSettingsScreen import net.newpipe.app.screen.settings.DownloadSettingsScreen import net.newpipe.app.screen.settings.HistorySettingsScreen @@ -62,6 +63,10 @@ fun navModule() = module { navigation { HistorySettingsScreen() } + + navigation { + ContentSettingsScreen() + } } /** 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 61a132472..1e5dac083 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 @@ -72,6 +72,10 @@ fun SettingsHomeScreen( Destination.HistorySettings ) + SettingsCategoryType.CONTENT -> navigator.navigateTo( + Destination.ContentSettings + ) + // TODO: wire remaining sub-screens as they are migrated else -> Unit }