diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/notifications/NotificationStore.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/notifications/NotificationStore.kt index a14f33e33c..fd1ca3fce1 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/notifications/NotificationStore.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/notifications/NotificationStore.kt @@ -116,6 +116,7 @@ class NotificationStore @Inject constructor( .setSmallIcon(smallIcon) .setLargeIcon(largeIcon) .setContentText(n.text) + .setStyle(NotificationCompat.BigTextStyle().bigText(n.text)) .setPriority(NotificationCompat.PRIORITY_MAX) .setDeleteIntent(deleteIntent(n.id)) if (n.level == Notification.URGENT) { 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(); diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/pump/combo/ruffyscripter/RuffyScripter.java b/app/src/main/java/info/nightscout/androidaps/plugins/pump/combo/ruffyscripter/RuffyScripter.java index b36a5f2a71..d2ac2e245b 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/pump/combo/ruffyscripter/RuffyScripter.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/pump/combo/ruffyscripter/RuffyScripter.java @@ -160,7 +160,7 @@ public class RuffyScripter implements RuffyCommands { } if (!boundSucceeded) { - log.error("No connection to ruffy. Pump control unavailable."); + log.info("No connection to ruffy. Pump control unavailable."); } } @@ -262,7 +262,7 @@ public class RuffyScripter implements RuffyCommands { long cmdEndTime = System.currentTimeMillis(); log.debug("Executing " + cmd + " took " + (cmdEndTime - cmdStartTime) + "ms"); } catch (CommandException e) { - log.error("CommandException running command", e); + log.info("CommandException running command", e); cmd.getResult().success = false; } catch (Exception e) { log.error("Unexpected exception running cmd", e);