Merge pull request #1447 from Andries-Smit/fix/wear-negative-time-offset

wear: support negative time offset ecarbs
This commit is contained in:
Milos Kozak 2022-03-16 10:19:49 +01:00 committed by GitHub
commit 97b002eb3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,7 @@ public class ECarbActivity extends ViewSelectorActivity {
if (editStartTime != null) { if (editStartTime != null) {
def = SafeParse.stringToDouble(editStartTime.editText.getText().toString()); def = SafeParse.stringToDouble(editStartTime.editText.getText().toString());
} }
editStartTime = new PlusMinusEditText(view, R.id.amountfield, R.id.plusbutton, R.id.minusbutton, def, 0d, 300d, 15d, new DecimalFormat("0"), false); editStartTime = new PlusMinusEditText(view, R.id.amountfield, R.id.plusbutton, R.id.minusbutton, def, -60d, 300d, 15d, new DecimalFormat("0"), false);
setLabelToPlusMinusView(view, getString(R.string.action_start_min)); setLabelToPlusMinusView(view, getString(R.string.action_start_min));
container.addView(view); container.addView(view);
return view; return view;