Hide/Disable Tune Insulin Curve (not fully validated on OpenAPS and not tested with Lyumjev insulin)

This commit is contained in:
Philoul 2022-05-11 18:44:19 +02:00
parent 6b1884faa1
commit 6c3929c88b
2 changed files with 3 additions and 2 deletions

View file

@ -78,6 +78,7 @@ class AutotuneFragment : DaggerFragment() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
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)
if (autotunePlugin.lastNbDays.isEmpty())
autotunePlugin.lastNbDays = sp.getInt(R.string.key_autotune_default_tune_days, 5).toString()

View file

@ -17,13 +17,13 @@
android:key="@string/key_autotune_categorize_uam_as_basal"
android:summary="@string/autotune_categorize_uam_as_basal_summary"
android:title="@string/autotune_categorize_uam_as_basal_title" />
<!-- Hide tune_insulin_curve option, OpenAPS not fully validated currently
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_autotune_tune_insulin_curve"
android:summary="@string/autotune_tune_insulin_curve_summary"
android:title="@string/autotune_tune_insulin_curve_title" />
-->
<EditTextPreference
android:defaultValue="5"
android:inputType="number"