Add check
This commit is contained in:
parent
96117bf2da
commit
d97a30d195
1 changed files with 14 additions and 12 deletions
|
@ -245,6 +245,7 @@ public class OmnipodPumpPlugin extends PumpPluginBase implements PumpInterface,
|
|||
getCommandQueue().customCommand(new CommandUpdateAlertConfiguration(), null);
|
||||
}
|
||||
|
||||
if (podStateManager.hasPodState()) {
|
||||
AlertSet activeAlerts = podStateManager.getActiveAlerts();
|
||||
if (aapsOmnipodManager.isAutomaticallyAcknowledgeAlertsEnabled() && activeAlerts.size() > 0 && !getCommandQueue().isCustomCommandInQueue(CommandAcknowledgeAlerts.class)) {
|
||||
String alerts = TextUtils.join(", ", aapsOmnipodUtil.getTranslatedActiveAlerts(podStateManager));
|
||||
|
@ -260,6 +261,7 @@ public class OmnipodPumpPlugin extends PumpPluginBase implements PumpInterface,
|
|||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
doPodCheck();
|
||||
|
||||
|
|
Loading…
Reference in a new issue