fixes: updateLowReservoirAlertSettings, call updateExpirationAlertSettings

This commit is contained in:
Andrei Vereha 2021-10-10 17:32:11 +02:00
parent 5a01e45855
commit 60beb0f5b6
2 changed files with 9 additions and 2 deletions

View file

@ -1229,7 +1229,7 @@ class OmnipodDashPumpPlugin @Inject constructor(
expirationReminderEnabled, expirationReminderEnabled,
expirationHours expirationHours
).andThen( ).andThen(
podStateManager.updateExpirationAlertSettings( podStateManager.updateLowReservoirAlertSettings(
lowReservoirAlertEnabled, lowReservoirAlertEnabled,
lowReservoirAlertUnits lowReservoirAlertUnits
) )

View file

@ -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))
} }