aboutsummaryrefslogtreecommitdiff
path: root/merchant-terminal/src
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-09-03 13:27:05 -0300
committerTorsten Grote <t@grobox.de>2020-09-03 13:27:05 -0300
commit1cb91611af564116e75384f17bc5af97b1ed2d12 (patch)
tree375c7eff8efd4ee0e6359005bd10c826745a0af7 /merchant-terminal/src
parent85c344b358e13d5b78647d191d6129dd11f8bdaf (diff)
downloadtaler-android-1cb91611af564116e75384f17bc5af97b1ed2d12.tar.gz
taler-android-1cb91611af564116e75384f17bc5af97b1ed2d12.tar.bz2
taler-android-1cb91611af564116e75384f17bc5af97b1ed2d12.zip
[pos] make app work on API 24+
Diffstat (limited to 'merchant-terminal/src')
-rw-r--r--merchant-terminal/src/main/java/net/taler/merchantpos/config/PosConfig.kt4
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