Merge pull request #916 from 0pen-dash/avereha/fix-alarm
Dash alarms: fix notification
This commit is contained in:
commit
c5599ee9b1
1 changed files with 10 additions and 9 deletions
|
@ -342,15 +342,16 @@ class OmnipodDashPumpPlugin @Inject constructor(
|
||||||
aapsLogger.info(LTag.PUMP, "syncBolusWithPumpId on CANCEL_BOLUS returned: $sync")
|
aapsLogger.info(LTag.PUMP, "syncBolusWithPumpId on CANCEL_BOLUS returned: $sync")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!podStateManager.alarmSynced) {
|
||||||
podStateManager.alarmType?.let {
|
podStateManager.alarmType?.let {
|
||||||
showNotification(
|
if (!commandQueue.isCustomCommandInQueue(CommandDeactivatePod::class.java)) {
|
||||||
Notification.OMNIPOD_POD_FAULT,
|
showNotification(
|
||||||
it.toString(),
|
Notification.OMNIPOD_POD_FAULT,
|
||||||
Notification.URGENT,
|
it.toString(),
|
||||||
R.raw.boluserror
|
Notification.URGENT,
|
||||||
)
|
R.raw.boluserror
|
||||||
if (!podStateManager.alarmSynced) {
|
)
|
||||||
|
}
|
||||||
pumpSync.insertAnnouncement(
|
pumpSync.insertAnnouncement(
|
||||||
error = it.toString(),
|
error = it.toString(),
|
||||||
pumpId = Random.Default.nextLong(),
|
pumpId = Random.Default.nextLong(),
|
||||||
|
|
Loading…
Reference in a new issue