diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputBg.java b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputBg.java index 950c838ea4..7e1ff75962 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputBg.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputBg.java @@ -55,7 +55,7 @@ public class InputBg extends Element { @Override public void addToLayout(LinearLayout root) { NumberPicker numberPicker = new NumberPicker(root.getContext(), null); - numberPicker.setParams(value, minValue, maxValue, step, decimalFormat, true, textWatcher); + numberPicker.setParams(value, minValue, maxValue, step, decimalFormat, true, null, textWatcher); numberPicker.setOnValueChangedListener(value -> this.value = value); root.addView(numberPicker); } diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputDelta.java b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputDelta.java index 9a42f4ef89..10910220c3 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputDelta.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputDelta.java @@ -122,7 +122,7 @@ public class InputDelta extends Element { spinner.setSelection(this.deltaType.ordinal()); // root.addView(spinner); numberPicker = new NumberPicker(root.getContext(), null); - numberPicker.setParams(value, minValue, maxValue, step, decimalFormat, true, textWatcher); + numberPicker.setParams(value, minValue, maxValue, step, decimalFormat, true, null, textWatcher); numberPicker.setOnValueChangedListener(value -> this.value = value); LinearLayout l = new LinearLayout(root.getContext()); l.setOrientation(LinearLayout.VERTICAL); diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputDouble.java b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputDouble.java index 9682d004fa..f8464e7ee0 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputDouble.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputDouble.java @@ -58,7 +58,7 @@ public class InputDouble extends Element { @Override public void addToLayout(LinearLayout root) { numberPicker = new NumberPicker(root.getContext(), null); - numberPicker.setParams(value, minValue, maxValue, step, decimalFormat, true, textWatcher); + numberPicker.setParams(value, minValue, maxValue, step, decimalFormat, true, null, textWatcher); numberPicker.setOnValueChangedListener(value -> this.value = value); root.addView(numberPicker); } diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputDuration.java b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputDuration.java index 05b245b110..a35fe4a4ad 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputDuration.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputDuration.java @@ -25,10 +25,10 @@ public class InputDuration extends Element { NumberPicker numberPicker = new NumberPicker(root.getContext(), null); if (unit.equals(TimeUnit.MINUTES)) { // Minutes - numberPicker.setParams(0d, 0d, 24 * 60d, 10d, new DecimalFormat("0"), false); + numberPicker.setParams(0d, 0d, 24 * 60d, 10d, new DecimalFormat("0"), false, null); } else { // Hours - numberPicker.setParams(0d, 0d, 24d, 1d, new DecimalFormat("0"), false); + numberPicker.setParams(0d, 0d, 24d, 1d, new DecimalFormat("0"), false, null); } numberPicker.setValue((double) value); numberPicker.setOnValueChangedListener(value -> this.value = (int) value); diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputInsulin.java b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputInsulin.java index 522c2972a3..8cf89d3b42 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputInsulin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputInsulin.java @@ -40,7 +40,7 @@ public class InputInsulin extends Element { @Override public void addToLayout(LinearLayout root) { NumberPicker numberPicker = new NumberPicker(root.getContext(), null); - numberPicker.setParams(0d, -20d, 20d, 0.1, new DecimalFormat("0.0"), true, textWatcher); + numberPicker.setParams(0d, -20d, 20d, 0.1, new DecimalFormat("0.0"), true, null, textWatcher); numberPicker.setValue(value); numberPicker.setOnValueChangedListener(value -> this.value = value); root.addView(numberPicker); diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputPercent.java b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputPercent.java index 03b47810ad..bade9082a3 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputPercent.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/elements/InputPercent.java @@ -41,7 +41,7 @@ public class InputPercent extends Element { @Override public void addToLayout(LinearLayout root) { NumberPicker numberPicker = new NumberPicker(root.getContext(), null); - numberPicker.setParams(100d, 70d, 130d, 5d, new DecimalFormat("0"), true, textWatcher); + numberPicker.setParams(100d, 70d, 130d, 5d, new DecimalFormat("0"), true, null, textWatcher); numberPicker.setValue(value); numberPicker.setOnValueChangedListener(value -> this.value = value); root.addView(numberPicker);