fixes: updateLowReservoirAlertSettings, call updateExpirationAlertSettings
This commit is contained in:
parent
5a01e45855
commit
60beb0f5b6
|
@ -1229,7 +1229,7 @@ class OmnipodDashPumpPlugin @Inject constructor(
|
|||
expirationReminderEnabled,
|
||||
expirationHours
|
||||
).andThen(
|
||||
podStateManager.updateExpirationAlertSettings(
|
||||
podStateManager.updateLowReservoirAlertSettings(
|
||||
lowReservoirAlertEnabled,
|
||||
lowReservoirAlertUnits
|
||||
)
|
||||
|
|
|
@ -103,7 +103,14 @@ class DashInsertCannulaViewModel @Inject constructor(
|
|||
pumpSerial = podStateManager.uniqueId?.toString() ?: "n/a"
|
||||
)
|
||||
|
||||
podStateManager.updateExpirationAlertSettings(expirationReminderEnabled, expirationHours)
|
||||
val err = podStateManager.updateExpirationAlertSettings(
|
||||
expirationReminderEnabled,
|
||||
expirationHours
|
||||
)
|
||||
.blockingGet()
|
||||
err?.let {
|
||||
logger.warn(LTag.PUMP, "Error updating local alert settings: $err")
|
||||
}
|
||||
rxBus.send(EventDismissNotification(Notification.OMNIPOD_POD_NOT_ATTACHED))
|
||||
source.onSuccess(PumpEnactResult(injector).success(true))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue