summaryrefslogtreecommitdiff
path: root/merchant-terminal/src/main/java/net/taler
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-04-01 15:04:52 -0300
committerTorsten Grote <t@grobox.de>2020-04-01 15:04:52 -0300
commitb2bec204e214e6b077c4c1901d07fabec27104e9 (patch)
tree2de3205d201011b47fe8241a164bb3bc6c6c468b /merchant-terminal/src/main/java/net/taler
parentaa6dad91b20edd0a304423d1edc267cf4e8b5dbe (diff)
downloadtaler-android-b2bec204e214e6b077c4c1901d07fabec27104e9.tar.gz
taler-android-b2bec204e214e6b077c4c1901d07fabec27104e9.tar.bz2
taler-android-b2bec204e214e6b077c4c1901d07fabec27104e9.zip
[pos] automatic code cleanup
Diffstat (limited to 'merchant-terminal/src/main/java/net/taler')
-rw-r--r--merchant-terminal/src/main/java/net/taler/merchantpos/config/MerchantRequest.kt8
-rw-r--r--merchant-terminal/src/main/java/net/taler/merchantpos/order/LiveOrder.kt3
2 files changed, 9 insertions, 2 deletions
diff --git a/merchant-terminal/src/main/java/net/taler/merchantpos/config/MerchantRequest.kt b/merchant-terminal/src/main/java/net/taler/merchantpos/config/MerchantRequest.kt
index 862dd33..6c9c741 100644
--- a/merchant-terminal/src/main/java/net/taler/merchantpos/config/MerchantRequest.kt
+++ b/merchant-terminal/src/main/java/net/taler/merchantpos/config/MerchantRequest.kt
@@ -32,7 +32,13 @@ class MerchantRequest(
listener: Response.Listener<JSONObject>,
errorListener: LogErrorListener
) :
- JsonObjectRequest(method, merchantConfig.urlFor(endpoint, params), jsonRequest, listener, errorListener) {
+ JsonObjectRequest(
+ method,
+ merchantConfig.urlFor(endpoint, params),
+ jsonRequest,
+ listener,
+ errorListener
+ ) {
override fun getHeaders(): MutableMap<String, String> {
val headerMap = ArrayMap<String, String>()
diff --git a/merchant-terminal/src/main/java/net/taler/merchantpos/order/LiveOrder.kt b/merchant-terminal/src/main/java/net/taler/merchantpos/order/LiveOrder.kt
index f8d465b..a77e39b 100644
--- a/merchant-terminal/src/main/java/net/taler/merchantpos/order/LiveOrder.kt
+++ b/merchant-terminal/src/main/java/net/taler/merchantpos/order/LiveOrder.kt
@@ -50,7 +50,8 @@ internal class MutableLiveOrder(
) : LiveOrder {
private val availableCategories: Map<Int, Category>
get() = productsByCategory.keys.map { it.id to it }.toMap()
- override val order: MutableLiveData<Order> = MutableLiveData(Order(id, currency, availableCategories))
+ override val order: MutableLiveData<Order> =
+ MutableLiveData(Order(id, currency, availableCategories))
override val orderTotal: LiveData<Amount> = Transformations.map(order) { it.total }
override val restartState = MutableLiveData(DISABLED)
private val selectedOrderLine = MutableLiveData<ConfigProduct>()