mirror of
https://github.com/PranshulGG/WeatherMaster.git
synced 2026-10-21 18:43:03 -05:00
fix Indonesian locale value and remove commented navigation code in AppNavHost.kt
This commit is contained in:
1 parent
010a1068a5
commit
f06de99291
3 files changed
+4
-6
No files matched your search
@@ -64,11 +64,6 @@ fun AppNavHost(
|
||||
) {
|
||||
navigation(
|
||||
route = "root",
|
||||
// startDestination = NavRoutes.blockScreen(
|
||||
// NavRoutes.SNOW,
|
||||
// 0,
|
||||
// "39359ae2-f32c-4859-ab39-916e664dc28f"
|
||||
// )
|
||||
startDestination = NavRoutes.MAIN
|
||||
) {
|
||||
composable(
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ fun getAppLocalLocales(): List<Language> {
|
||||
Language(name = "Hungarian", value = "hu-HU", nativeName = "Magyar", code = "HU"),
|
||||
Language(
|
||||
name = "Indonesian",
|
||||
value = "in-ID",
|
||||
value = "id-ID",
|
||||
nativeName = "Bahasa Indonesia",
|
||||
code = "ID"
|
||||
),
|
||||
|
||||
+3
@@ -80,6 +80,9 @@ fun LanguageScreen(navController: NavController) {
|
||||
tiles = languageList.map {
|
||||
val selected =
|
||||
if (isSystemLanguage) it.value == "sys" else it.value == currentAppLocale.value
|
||||
|
||||
|
||||
|
||||
SettingTile.ActionTile(
|
||||
leading = {
|
||||
if (selected) AvatarCheck(
|
||||
|
||||
Reference in new issue
Block a user