fix typo in LocalAlertUtils
This commit is contained in:
parent
4238e9cab3
commit
ce8fbc5580
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ class LocalAlertUtils @Inject constructor(
|
||||||
if (sp.getBoolean(R.string.key_enable_pump_unreachable_alert, true)) {
|
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)
|
aapsLogger.debug(LTag.CORE, "Generating pump unreachable alarm. lastConnection: " + dateUtil.dateAndTimeString(lastConnection) + " isStatusOutdated: " + isStatusOutdated)
|
||||||
sp.putLong("nextPumpDisconnectedAlarm", System.currentTimeMillis() + pumpUnreachableThreshold())
|
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))
|
if (sp.getBoolean(R.string.key_ns_create_announcements_from_errors, true))
|
||||||
nsUpload.uploadError(resourceHelper.gs(R.string.pump_unreachable))
|
nsUpload.uploadError(resourceHelper.gs(R.string.pump_unreachable))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue