fix typo in LocalAlertUtils
This commit is contained in:
parent
4238e9cab3
commit
ce8fbc5580
|
@ -54,7 +54,7 @@ class LocalAlertUtils @Inject constructor(
|
|||
if (sp.getBoolean(R.string.key_enable_pump_unreachable_alert, true)) {
|
||||
aapsLogger.debug(LTag.CORE, "Generating pump unreachable alarm. lastConnection: " + dateUtil.dateAndTimeString(lastConnection) + " isStatusOutdated: " + isStatusOutdated)
|
||||
sp.putLong("nextPumpDisconnectedAlarm", System.currentTimeMillis() + pumpUnreachableThreshold())
|
||||
rxBus.send(EventNewNotification(Notification(Notification.PUMP_UNREACHABLE, resourceHelper.gs(R.string.pump_unreachable), Notification.URGENT).also { it.soundId - R.raw.alarm }))
|
||||
rxBus.send(EventNewNotification(Notification(Notification.PUMP_UNREACHABLE, resourceHelper.gs(R.string.pump_unreachable), Notification.URGENT).also { it.soundId = R.raw.alarm }))
|
||||
if (sp.getBoolean(R.string.key_ns_create_announcements_from_errors, true))
|
||||
nsUpload.uploadError(resourceHelper.gs(R.string.pump_unreachable))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue