Merge pull request #1725 from Philoul/Autotune/HideTuneInsulinCurve

Hide Tune Insulin Curve option
This commit is contained in:
Milos Kozak 2022-05-12 00:09:56 +02:00 committed by GitHub
commit ff46cbf195
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"