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