Skip to content

Commit

Permalink
Update library/model/src/main/kotlin/org/cru/godtools/model/Language.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
frett authored Jun 20, 2024
1 parent e3a15eb commit 6a89460
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ data class Language(

@JvmOverloads
fun getDisplayName(context: Context?, inLocale: Locale? = context?.appLanguage) =
code.takeIf { isValid }.takeIf { !isForcedName }?.getDisplayName(context, name, inLocale) ?: name ?: ""
code.takeIf { isValid && !isForcedName }?.getDisplayName(context, name, inLocale) ?: name ?: ""
}

0 comments on commit 6a89460

Please sign in to comment.