Merge pull request #210 from nightscout/fix/concurrent-button-press-crash
Fix/concurrent button press crash
This commit is contained in:
commit
a843bb8b84
1 changed files with 4 additions and 3 deletions
|
@ -372,6 +372,7 @@ public class TimeListEdit {
|
|||
}
|
||||
|
||||
private void addItem(int index, int timeAsSeconds, double value1, double value2) {
|
||||
if (itemsCount() >= 24) return;
|
||||
if (itemsCount() > inflatedUntil) {
|
||||
layout.removeView(finalAdd);
|
||||
inflateRow(++inflatedUntil);
|
||||
|
|
Loading…
Reference in a new issue