Skip to content

Commit 0dbd5e4

Browse files
committed
Increased toast message duration for longer texts
1 parent e5253c1 commit 0dbd5e4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
88

99
### Changed
1010
- Send cart again after checkout abort
11+
- Increased toast message duration for longer texts
1112

1213
## [0.16.9]
1314

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static Activity getHostActivity(Context context) {
4545
}
4646

4747
public static int getDurationByLength(String text) {
48-
return Math.max(Math.min(text.length() * 50, 2000), 7000);
48+
return Math.max(Math.min(text.length() * 70, 2000), 7000);
4949
}
5050

5151
public static View showTopDownInfoBox(ViewGroup parent, String text, int duration, int type) {

0 commit comments

Comments
 (0)