Skip to content

Commit

Permalink
fix: Set english language as first in list
Browse files Browse the repository at this point in the history
  • Loading branch information
shah272728 committed Dec 4, 2024
1 parent 1ba5966 commit 39dffe4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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),
Expand Down

0 comments on commit 39dffe4

Please sign in to comment.