fixes: updateLowReservoirAlertSettings, call updateExpirationAlertSettings
This commit is contained in:
parent
5a01e45855
commit
60beb0f5b6
2 changed files with 9 additions and 2 deletions
|
@ -1229,7 +1229,7 @@ class OmnipodDashPumpPlugin @Inject constructor(
|
||||||
expirationReminderEnabled,
|
expirationReminderEnabled,
|
||||||
expirationHours
|
expirationHours
|
||||||
).andThen(
|
).andThen(
|
||||||
podStateManager.updateExpirationAlertSettings(
|
podStateManager.updateLowReservoirAlertSettings(
|
||||||
lowReservoirAlertEnabled,
|
lowReservoirAlertEnabled,
|
||||||
lowReservoirAlertUnits
|
lowReservoirAlertUnits
|
||||||
)
|
)
|
||||||
|
|
|
@ -103,7 +103,14 @@ class DashInsertCannulaViewModel @Inject constructor(
|
||||||
pumpSerial = podStateManager.uniqueId?.toString() ?: "n/a"
|
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))
|
rxBus.send(EventDismissNotification(Notification.OMNIPOD_POD_NOT_ATTACHED))
|
||||||
source.onSuccess(PumpEnactResult(injector).success(true))
|
source.onSuccess(PumpEnactResult(injector).success(true))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue