Hide/Disable Tune Insulin Curve (not fully validated on OpenAPS and not tested with Lyumjev insulin)
This commit is contained in:
parent
6b1884faa1
commit
6c3929c88b
2 changed files with 3 additions and 2 deletions
|
@ -78,6 +78,7 @@ class AutotuneFragment : DaggerFragment() {
|
||||||
|
|
||||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||||
super.onViewCreated(view, savedInstanceState)
|
super.onViewCreated(view, savedInstanceState)
|
||||||
|
sp.putBoolean(R.string.key_autotune_tune_insulin_curve, false) // put to false tune insulin curve
|
||||||
autotunePlugin.lastRun = sp.getLong(R.string.key_autotune_last_run, 0)
|
autotunePlugin.lastRun = sp.getLong(R.string.key_autotune_last_run, 0)
|
||||||
if (autotunePlugin.lastNbDays.isEmpty())
|
if (autotunePlugin.lastNbDays.isEmpty())
|
||||||
autotunePlugin.lastNbDays = sp.getInt(R.string.key_autotune_default_tune_days, 5).toString()
|
autotunePlugin.lastNbDays = sp.getInt(R.string.key_autotune_default_tune_days, 5).toString()
|
||||||
|
|
|
@ -17,13 +17,13 @@
|
||||||
android:key="@string/key_autotune_categorize_uam_as_basal"
|
android:key="@string/key_autotune_categorize_uam_as_basal"
|
||||||
android:summary="@string/autotune_categorize_uam_as_basal_summary"
|
android:summary="@string/autotune_categorize_uam_as_basal_summary"
|
||||||
android:title="@string/autotune_categorize_uam_as_basal_title" />
|
android:title="@string/autotune_categorize_uam_as_basal_title" />
|
||||||
|
<!-- Hide tune_insulin_curve option, OpenAPS not fully validated currently
|
||||||
<SwitchPreference
|
<SwitchPreference
|
||||||
android:defaultValue="false"
|
android:defaultValue="false"
|
||||||
android:key="@string/key_autotune_tune_insulin_curve"
|
android:key="@string/key_autotune_tune_insulin_curve"
|
||||||
android:summary="@string/autotune_tune_insulin_curve_summary"
|
android:summary="@string/autotune_tune_insulin_curve_summary"
|
||||||
android:title="@string/autotune_tune_insulin_curve_title" />
|
android:title="@string/autotune_tune_insulin_curve_title" />
|
||||||
|
-->
|
||||||
<EditTextPreference
|
<EditTextPreference
|
||||||
android:defaultValue="5"
|
android:defaultValue="5"
|
||||||
android:inputType="number"
|
android:inputType="number"
|
||||||
|
|
Loading…
Reference in a new issue