We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd3f208 commit 0801f7aCopy full SHA for 0801f7a
ui/src/main/java/io/snabble/sdk/ui/cart/ShoppingCartView.java
@@ -396,8 +396,10 @@ public void bindTo(final int position) {
396
priceTextView.setText(String.format(" * %s = %s", price, priceSum));
397
}
398
399
- if (type == Product.Type.UserWeighed || embeddedWeight != null) {
+ if(embeddedWeight != null) {
400
quantityTextView.setText(String.format("%s g", String.valueOf(embeddedWeight)));
401
+ } else if (type == Product.Type.UserWeighed) {
402
+ quantityTextView.setText(String.format("%s g", String.valueOf(quantity)));
403
} else {
404
quantityTextView.setText(String.valueOf(quantity));
405
0 commit comments