diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/pump/combo/ComboPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/pump/combo/ComboPlugin.java index 5521396b6b..2a63947f5a 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/pump/combo/ComboPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/pump/combo/ComboPlugin.java @@ -941,7 +941,13 @@ public class ComboPlugin extends PumpPluginBase implements PumpInterface, Constr activeAlert.warningCode == PumpWarningCodes.TBR_CANCELLED)) { // turn benign warnings into notifications notifyAboutPumpWarning(activeAlert); - ruffyScripter.confirmAlert(activeAlert.warningCode); + CommandResult alertConfirmationResult = ruffyScripter.confirmAlert(activeAlert.warningCode); + if (!alertConfirmationResult.success) { + return alertConfirmationResult; + } + // while the warning was active the menu data couldn't be read, only after confirmation, + // so update the var with it, so the check routines below can work on it + preCheckResult = alertConfirmationResult; } else if (activeAlert.errorCode != null) { Notification notification = new Notification(); notification.date = DateUtil.now();