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 and gyasistory committed Jun 20, 2024
1 parent 4b35b04 commit f644604
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 f644604

Please sign in to comment.