From 39dffe4f30e06e455c257ec60918db8eb2953d96 Mon Sep 17 00:00:00 2001 From: shah Date: Wed, 4 Dec 2024 17:10:49 +0530 Subject: [PATCH] fix: Set english language as first in list --- .../com/aws/amazonlocation/ui/main/explore/ExploreViewModel.kt | 2 +- .../aws/amazonlocation/ui/main/map_style/MapStyleViewModel.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/aws/amazonlocation/ui/main/explore/ExploreViewModel.kt b/app/src/main/java/com/aws/amazonlocation/ui/main/explore/ExploreViewModel.kt index 183f71c9..64d926bc 100644 --- a/app/src/main/java/com/aws/amazonlocation/ui/main/explore/ExploreViewModel.kt +++ b/app/src/main/java/com/aws/amazonlocation/ui/main/explore/ExploreViewModel.kt @@ -618,6 +618,7 @@ class ExploreViewModel mMapLanguageData = arrayListOf( LanguageData(value = context.getString(R.string.label_no_map_language), label = context.getString(R.string.label_no_map_language), isSelected = false), + LanguageData(value = "en", label = "English", isSelected = false), LanguageData(value = "ar", label = "العربية", isSelected = false), LanguageData(value = "as", label = "অসমীয়া", isSelected = false), LanguageData(value = "az", label = "Azərbaycan dili", isSelected = false), @@ -631,7 +632,6 @@ class ExploreViewModel LanguageData(value = "da", label = "Dansk", isSelected = false), LanguageData(value = "de", label = "Deutsch", isSelected = false), LanguageData(value = "el", label = "Ελληνικά", isSelected = false), - LanguageData(value = "en", label = "English", isSelected = false), LanguageData(value = "es", label = "Español", isSelected = false), LanguageData(value = "et", label = "Eesti", isSelected = false), LanguageData(value = "eu", label = "Euskara", isSelected = false), diff --git a/app/src/main/java/com/aws/amazonlocation/ui/main/map_style/MapStyleViewModel.kt b/app/src/main/java/com/aws/amazonlocation/ui/main/map_style/MapStyleViewModel.kt index 0b582f3f..9bcab425 100644 --- a/app/src/main/java/com/aws/amazonlocation/ui/main/map_style/MapStyleViewModel.kt +++ b/app/src/main/java/com/aws/amazonlocation/ui/main/map_style/MapStyleViewModel.kt @@ -143,6 +143,7 @@ class MapStyleViewModel @Inject constructor() : ViewModel() { mMapLanguageData = arrayListOf( LanguageData(value = context.getString(R.string.label_no_map_language), label = context.getString(R.string.label_no_map_language), isSelected = false), + LanguageData(value = "en", label = "English", isSelected = false), LanguageData(value = "ar", label = "العربية", isSelected = false), LanguageData(value = "as", label = "অসমীয়া", isSelected = false), LanguageData(value = "az", label = "Azərbaycan dili", isSelected = false), @@ -156,7 +157,6 @@ class MapStyleViewModel @Inject constructor() : ViewModel() { LanguageData(value = "da", label = "Dansk", isSelected = false), LanguageData(value = "de", label = "Deutsch", isSelected = false), LanguageData(value = "el", label = "Ελληνικά", isSelected = false), - LanguageData(value = "en", label = "English", isSelected = false), LanguageData(value = "es", label = "Español", isSelected = false), LanguageData(value = "et", label = "Eesti", isSelected = false), LanguageData(value = "eu", label = "Euskara", isSelected = false),