commit
b4ea205103
|
@ -182,7 +182,7 @@ public class TreatmentsPlugin implements PluginBase, TreatmentsInterface {
|
||||||
Iob tIOB = t.iobCalc(time, dia);
|
Iob tIOB = t.iobCalc(time, dia);
|
||||||
total.iob += tIOB.iobContrib;
|
total.iob += tIOB.iobContrib;
|
||||||
total.activity += tIOB.activityContrib;
|
total.activity += tIOB.activityContrib;
|
||||||
Iob bIOB = t.iobCalc(time, dia / SP.getInt("openapsama_bolussnooze_dia_divisor", 2));
|
Iob bIOB = t.iobCalc(time, dia / SP.getDouble("openapsama_bolussnooze_dia_divisor", 2.0));
|
||||||
total.bolussnooze += bIOB.iobContrib;
|
total.bolussnooze += bIOB.iobContrib;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -103,14 +103,14 @@
|
||||||
android:title="@string/openapsama_autosens_adjusttargets"
|
android:title="@string/openapsama_autosens_adjusttargets"
|
||||||
android:summary="@string/openapsama_autosens_adjusttargets_summary"/>
|
android:summary="@string/openapsama_autosens_adjusttargets_summary"/>
|
||||||
<com.andreabaccega.widget.ValidatingEditTextPreference
|
<com.andreabaccega.widget.ValidatingEditTextPreference
|
||||||
validate:testType="numericRange"
|
validate:testType="floatNumericRange"
|
||||||
validate:minNumber="1"
|
validate:minNumber="1"
|
||||||
validate:maxNumber="5"
|
validate:maxNumber="10"
|
||||||
android:digits="0123456789.,"
|
android:digits="0123456789.,"
|
||||||
android:defaultValue="2"
|
android:defaultValue="2"
|
||||||
android:selectAllOnFocus="true"
|
android:selectAllOnFocus="true"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:inputType="number"
|
android:inputType="numberDecimal"
|
||||||
android:maxLines="20"
|
android:maxLines="20"
|
||||||
android:title="@string/openapsama_bolussnooze_dia_divisor"
|
android:title="@string/openapsama_bolussnooze_dia_divisor"
|
||||||
android:dialogMessage="@string/openapsama_bolussnooze_dia_divisor_summary"
|
android:dialogMessage="@string/openapsama_bolussnooze_dia_divisor_summary"
|
||||||
|
|
Loading…
Reference in a new issue