Set expiry to 72 hours
This commit is contained in:
parent
2d8288d8d9
commit
f24c872415
|
@ -180,7 +180,7 @@ class MedtrumOverviewViewModel @Inject constructor(
|
||||||
_patchNo.postValue(medtrumPump.patchId.toString())
|
_patchNo.postValue(medtrumPump.patchId.toString())
|
||||||
|
|
||||||
if (medtrumPump.desiredPatchExpiration) {
|
if (medtrumPump.desiredPatchExpiration) {
|
||||||
val expiry = medtrumPump.patchStartTime + T.hours(84).msecs()
|
val expiry = medtrumPump.patchStartTime + T.hours(72).msecs()
|
||||||
_patchExpiry.postValue(dateUtil.dateAndTimeString(expiry))
|
_patchExpiry.postValue(dateUtil.dateAndTimeString(expiry))
|
||||||
} else {
|
} else {
|
||||||
_patchExpiry.postValue(rh.gs(R.string.expiry_not_enabled))
|
_patchExpiry.postValue(rh.gs(R.string.expiry_not_enabled))
|
||||||
|
|
|
@ -133,7 +133,7 @@
|
||||||
<string name="alarm_setting_title">Alarm Settings</string>
|
<string name="alarm_setting_title">Alarm Settings</string>
|
||||||
<string name="alarm_setting_summary">Select your preferred pump alarm settings.</string>
|
<string name="alarm_setting_summary">Select your preferred pump alarm settings.</string>
|
||||||
<string name="patch_expiration_title">Patch Expiration</string>
|
<string name="patch_expiration_title">Patch Expiration</string>
|
||||||
<string name="patch_expiration_summary">Turn this on to get an alert 12 hours before the patch expiration. When enabled, the patch will expire after 3.5 days.</string>
|
<string name="patch_expiration_summary">When enabled, the patch will expire after 3 days, with a grace period of 8 hours after that.</string>
|
||||||
<string name="hourly_max_insulin_title">Hourly Maximum Insulin</string>
|
<string name="hourly_max_insulin_title">Hourly Maximum Insulin</string>
|
||||||
<string name="hourly_max_insulin_summary">Specify the maximum units of insulin allowed per hour. If exceeded, the pump will suspend.</string>
|
<string name="hourly_max_insulin_summary">Specify the maximum units of insulin allowed per hour. If exceeded, the pump will suspend.</string>
|
||||||
<string name="daily_max_insulin_title">Daily Maximum Insulin</string>
|
<string name="daily_max_insulin_title">Daily Maximum Insulin</string>
|
||||||
|
|
Loading…
Reference in a new issue