diff options
Diffstat (limited to 'merchant-terminal/src')
-rw-r--r-- | merchant-terminal/src/main/java/net/taler/merchantpos/config/PosConfig.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/merchant-terminal/src/main/java/net/taler/merchantpos/config/PosConfig.kt b/merchant-terminal/src/main/java/net/taler/merchantpos/config/PosConfig.kt index cc8caf6..7def7cc 100644 --- a/merchant-terminal/src/main/java/net/taler/merchantpos/config/PosConfig.kt +++ b/merchant-terminal/src/main/java/net/taler/merchantpos/config/PosConfig.kt @@ -16,6 +16,7 @@ package net.taler.merchantpos.config +import android.os.Build.VERSION.SDK_INT import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable import net.taler.common.ContractProduct @@ -49,7 +50,8 @@ data class Category( val nameI18n: Map<String, String>? = null ) { var selected: Boolean = false - val localizedName: String get() = TalerUtils.getLocalizedString(nameI18n, name) + val localizedName: String + get() = if (SDK_INT >= 26) TalerUtils.getLocalizedString(nameI18n, name) else name } @Serializable |