wear carb restriction
This commit is contained in:
parent
c0b287ba00
commit
65d1624a5f
2 changed files with 3 additions and 3 deletions
|
@ -83,7 +83,7 @@ public class BolusActivity extends Activity {
|
||||||
if (editCarbs != null){
|
if (editCarbs != null){
|
||||||
def = SafeParse.stringToDouble(editCarbs.editText.getText().toString());
|
def = SafeParse.stringToDouble(editCarbs.editText.getText().toString());
|
||||||
}
|
}
|
||||||
editCarbs = new PlusMinusEditText(view, R.id.amountfield, R.id.plusbutton, R.id.minusbutton, def, 0d, 100d, 1d, new DecimalFormat("0"), false);
|
editCarbs = new PlusMinusEditText(view, R.id.amountfield, R.id.plusbutton, R.id.minusbutton, def, 0d, 150d, 1d, new DecimalFormat("0"), false);
|
||||||
container.addView(view);
|
container.addView(view);
|
||||||
return view;
|
return view;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -72,10 +72,10 @@ public class WizardActivity extends Activity {
|
||||||
final TextView textView = (TextView) view.findViewById(R.id.label);
|
final TextView textView = (TextView) view.findViewById(R.id.label);
|
||||||
textView.setText("carbs");
|
textView.setText("carbs");
|
||||||
if (editCarbs == null) {
|
if (editCarbs == null) {
|
||||||
editCarbs = new PlusMinusEditText(view, R.id.amountfield, R.id.plusbutton, R.id.minusbutton, 0d, 0d, 100d, 1d, new DecimalFormat("0"), false);
|
editCarbs = new PlusMinusEditText(view, R.id.amountfield, R.id.plusbutton, R.id.minusbutton, 0d, 0d, 150d, 1d, new DecimalFormat("0"), false);
|
||||||
} else {
|
} else {
|
||||||
double def = SafeParse.stringToDouble(editCarbs.editText.getText().toString());
|
double def = SafeParse.stringToDouble(editCarbs.editText.getText().toString());
|
||||||
editCarbs = new PlusMinusEditText(view, R.id.amountfield, R.id.plusbutton, R.id.minusbutton, def, 0d, 100d, 1d, new DecimalFormat("0"), false);
|
editCarbs = new PlusMinusEditText(view, R.id.amountfield, R.id.plusbutton, R.id.minusbutton, def, 0d, 150d, 1d, new DecimalFormat("0"), false);
|
||||||
|
|
||||||
}
|
}
|
||||||
container.addView(view);
|
container.addView(view);
|
||||||
|
|
Loading…
Reference in a new issue