From 14b32d92ec0653a2c34b329fb41830db4182bb06 Mon Sep 17 00:00:00 2001 From: Philoul Date: Sun, 11 Sep 2022 17:38:32 +0200 Subject: [PATCH] Fix Autotune Fragment on lastRun click --- .../androidaps/plugins/general/autotune/AutotuneFragment.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/autotune/AutotuneFragment.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/autotune/AutotuneFragment.kt index 259f72c903..57388f49cf 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/autotune/AutotuneFragment.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/autotune/AutotuneFragment.kt @@ -263,6 +263,7 @@ class AutotuneFragment : DaggerFragment() { binding.tuneLastrun.setOnClickListener { if (!autotunePlugin.calculationRunning) { autotunePlugin.loadLastRun() + binding.tuneDays.value = autotunePlugin.lastNbDays.toDouble() updateGui() } }