Rename routes in settings
This commit is contained in:
@@ -30,11 +30,11 @@ import it.vfsfitvnm.vimusic.utils.*
|
||||
fun SettingsScreen() {
|
||||
val albumRoute = rememberPlaylistOrAlbumRoute()
|
||||
val artistRoute = rememberArtistRoute()
|
||||
val appearanceRoute = rememberAppearanceRoute()
|
||||
val appearanceSettingsRoute = rememberAppearanceSettingsRoute()
|
||||
val playerSettingsRoute = rememberPlayerSettingsRoute()
|
||||
val notificationRoute = rememberNotificationRoute()
|
||||
val notificationSettingsRoute = rememberNotificationSettingsRoute()
|
||||
val backupAndRestoreRoute = rememberBackupAndRestoreRoute()
|
||||
val otherRoute = rememberOtherRoute()
|
||||
val otherSettingsRoute = rememberOtherSettingsRoute()
|
||||
val aboutRoute = rememberAboutRoute()
|
||||
|
||||
val scrollState = rememberScrollState()
|
||||
@@ -64,7 +64,7 @@ fun SettingsScreen() {
|
||||
)
|
||||
}
|
||||
|
||||
appearanceRoute {
|
||||
appearanceSettingsRoute {
|
||||
AppearanceScreen()
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ fun SettingsScreen() {
|
||||
PlayerSettingsScreen()
|
||||
}
|
||||
|
||||
notificationRoute {
|
||||
notificationSettingsRoute {
|
||||
NotificationScreen()
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ fun SettingsScreen() {
|
||||
BackupAndRestoreScreen()
|
||||
}
|
||||
|
||||
otherRoute {
|
||||
otherSettingsRoute {
|
||||
OtherScreen()
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@ fun SettingsScreen() {
|
||||
icon = R.drawable.color_palette,
|
||||
title = "Appearance",
|
||||
description = "Change the colors and shapes of the app",
|
||||
route = appearanceRoute,
|
||||
route = appearanceSettingsRoute,
|
||||
)
|
||||
|
||||
Entry(
|
||||
@@ -198,7 +198,7 @@ fun SettingsScreen() {
|
||||
icon = R.drawable.notifications,
|
||||
title = "Notification",
|
||||
description = "Customize the notification appearance",
|
||||
route = notificationRoute
|
||||
route = notificationSettingsRoute
|
||||
)
|
||||
|
||||
Entry(
|
||||
@@ -214,7 +214,7 @@ fun SettingsScreen() {
|
||||
icon = R.drawable.shapes,
|
||||
title = "Other",
|
||||
description = "Advanced options",
|
||||
route = otherRoute
|
||||
route = otherSettingsRoute
|
||||
)
|
||||
|
||||
Entry(
|
||||
|
||||
@@ -5,9 +5,9 @@ import androidx.compose.runtime.remember
|
||||
import it.vfsfitvnm.route.Route0
|
||||
|
||||
@Composable
|
||||
fun rememberAppearanceRoute(): Route0 {
|
||||
fun rememberAppearanceSettingsRoute(): Route0 {
|
||||
return remember {
|
||||
Route0("AppearanceRoute")
|
||||
Route0("AppearanceSettingsRoute")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,9 +19,9 @@ fun rememberPlayerSettingsRoute(): Route0 {
|
||||
}
|
||||
|
||||
@Composable
|
||||
fun rememberNotificationRoute(): Route0 {
|
||||
fun rememberNotificationSettingsRoute(): Route0 {
|
||||
return remember {
|
||||
Route0("NotificationRoute")
|
||||
Route0("NotificationSettingsRoute")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,9 +33,9 @@ fun rememberBackupAndRestoreRoute(): Route0 {
|
||||
}
|
||||
|
||||
@Composable
|
||||
fun rememberOtherRoute(): Route0 {
|
||||
fun rememberOtherSettingsRoute(): Route0 {
|
||||
return remember {
|
||||
Route0("OtherRoute")
|
||||
Route0("OtherSettingsRoute")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user