From 6a89460c98ca5768904dbc038a178fcb3bd797f3 Mon Sep 17 00:00:00 2001 From: Daniel Frett Date: Thu, 20 Jun 2024 10:54:35 -0600 Subject: [PATCH] Update library/model/src/main/kotlin/org/cru/godtools/model/Language.kt --- .../model/src/main/kotlin/org/cru/godtools/model/Language.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/model/src/main/kotlin/org/cru/godtools/model/Language.kt b/library/model/src/main/kotlin/org/cru/godtools/model/Language.kt index cf8be24de0..b6b0e604c5 100644 --- a/library/model/src/main/kotlin/org/cru/godtools/model/Language.kt +++ b/library/model/src/main/kotlin/org/cru/godtools/model/Language.kt @@ -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 ?: "" }