Skip to content

Commit c4bf33c

Browse files
committed
- Top down info box appearing again on layout change
- Fix quantity edit on commission products
1 parent 6781e40 commit c4bf33c

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [0.12.0]
5+
6+
### Fixed
7+
- Top down info box appearing again on layout change
8+
- Quantity is now not editable anymore over keyboard input for commission products
9+
410
## [0.12.0-beta7]
511

612
### Fixed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ allprojects {
2323
}
2424

2525
project.ext {
26-
sdkVersion='0.12.0-beta7'
26+
sdkVersion='0.12.0'
2727
versionCode=1
2828

2929
compileSdkVersion=28

ui/src/main/java/io/snabble/sdk/ui/scanner/ProductConfirmationDialog.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ public void show(Product newProduct, ScannedCode scannedCode) {
165165
if (productPrice == 0) {
166166
plus.setVisibility(View.GONE);
167167
minus.setVisibility(View.GONE);
168+
quantity.setEnabled(false);
168169
quantity.setText("1");
169170
}
170171
} else if (type == Product.Type.UserWeighed) {

ui/src/main/java/io/snabble/sdk/ui/utils/UIUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,10 @@ public static View showTopDownInfoBox(ViewGroup parent, String text, int duratio
8080
@Override
8181
public void onLayoutChange(View view, int left, int top, int right, int bottom,
8282
int oldLeft, int oldTop, int oldRight, int oldBottom) {
83+
info.removeOnLayoutChangeListener(this);
84+
8385
info.setTranslationY(-info.getHeight());
8486
info.setVisibility(View.VISIBLE);
85-
8687
info.animate().translationY(0).start();
8788
}
8889
});

0 commit comments

Comments
 (0)