Skip to content

Commit

Permalink
Merge pull request #115 from makeen-project/ALS-1889
Browse files Browse the repository at this point in the history
  • Loading branch information
olegfilimonov authored Nov 22, 2024
2 parents 0cd220e + cf76ba0 commit a62122a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/src/main/java/com/aws/amazonlocation/utils/MapHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,12 @@ class MapHelper(
}

private fun setStyleLanguage(style: Style) {
val languageCode = getLanguageCode()
var languageCode = getLanguageCode()
if (languageCode != null) {
if (languageCode.contains("-")) {
languageCode = languageCode.split("-")[0]
}
}
val expression: Expression? = Expression.coalesce(
Expression.get("name:$languageCode"),
Expression.get("name:en"),
Expand Down

0 comments on commit a62122a

Please sign in to comment.