From 218799167bd354ebf99ea70a484631994316b1b6 Mon Sep 17 00:00:00 2001 From: Bart Sopers Date: Mon, 14 Dec 2020 23:38:11 +0100 Subject: [PATCH] Remove redundant Omnipod notification dismissal --- .../androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java index d191e3cbe2..cd6c00d1be 100644 --- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java +++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java @@ -1030,9 +1030,7 @@ public class OmnipodPumpPlugin extends PumpPluginBase implements PumpInterface, break; } } - if (success) { - rxBus.send(new EventDismissNotification(Notification.OMNIPOD_STARTUP_STATUS_REFRESH_FAILED)); - } else { + if (!success) { aapsLogger.warn(LTag.PUMP, "Failed to retrieve Pod status on startup"); rxBus.send(new EventNewNotification(new Notification(Notification.OMNIPOD_STARTUP_STATUS_REFRESH_FAILED, resourceHelper.gs(R.string.omnipod_error_failed_to_refresh_status_on_startup), Notification.NORMAL))); }