fix build

This commit is contained in:
Milos Kozak 2022-07-07 10:09:36 +02:00
parent 5c26c1ddb6
commit cf1f31ab78

View file

@ -182,7 +182,7 @@ public class TimeListEdit {
numberPickers1[position].setTextWatcher(new TextWatcher() { numberPickers1[position].setTextWatcher(new TextWatcher() {
@Override @Override
public void afterTextChanged(Editable s) { public void afterTextChanged(Editable s) {
Double value1 = SafeParse.INSTANCE.stringToDouble(numberPickers1[position].getText()); Double value1 = SafeParse.INSTANCE.stringToDouble(numberPickers1[position].getText(), 0.0);
Double value2 = value2(position); Double value2 = value2(position);
if (data2 != null && value1 > value2) { if (data2 != null && value1 > value2) {
value2 = value1; value2 = value1;
@ -209,7 +209,7 @@ public class TimeListEdit {
@Override @Override
public void afterTextChanged(Editable s) { public void afterTextChanged(Editable s) {
Double value1 = value1(position); Double value1 = value1(position);
Double value2 = SafeParse.INSTANCE.stringToDouble(numberPickers2[position].getText()); Double value2 = SafeParse.INSTANCE.stringToDouble(numberPickers2[position].getText(), 0.0);
if (data2 != null && value2 < value1) { if (data2 != null && value2 < value1) {
value1 = value2; value1 = value2;
numberPickers1[position].setValue(value1); numberPickers1[position].setValue(value1);