From 302ac77cc07d9e89c8bacc35f11d81177716cfe2 Mon Sep 17 00:00:00 2001 From: Andries Smit Date: Thu, 18 Aug 2022 09:10:35 +0200 Subject: [PATCH] fix: loop dialog button visibility --- .../main/java/info/nightscout/androidaps/dialogs/LoopDialog.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/dialogs/LoopDialog.kt b/app/src/main/java/info/nightscout/androidaps/dialogs/LoopDialog.kt index b6bff09699..e0b0788a25 100644 --- a/app/src/main/java/info/nightscout/androidaps/dialogs/LoopDialog.kt +++ b/app/src/main/java/info/nightscout/androidaps/dialogs/LoopDialog.kt @@ -153,7 +153,7 @@ class LoopDialog : DaggerDialogFragment() { aapsLogger.debug("UpdateGUI from $from") val pumpDescription: PumpDescription = activePlugin.activePump.pumpDescription val closedLoopAllowed = constraintChecker.isClosedLoopAllowed(Constraint(true)) - val closedLoopAllowed2 = objectivePlugin.objectives[ObjectivesPlugin.MAXIOB_OBJECTIVE].isCompleted + val closedLoopAllowed2 = objectivePlugin.objectives[ObjectivesPlugin.MAXIOB_OBJECTIVE].isAccomplished val lgsEnabled = constraintChecker.isLgsAllowed(Constraint(true)) val apsMode = sp.getString(R.string.key_aps_mode, "open") val pump = activePlugin.activePump