This commit is contained in:
Andrei Vereha 2021-07-11 12:02:03 +02:00
parent 87a297c36d
commit 5ffc924e63

View file

@ -468,7 +468,7 @@ class OmnipodDashPodStateManagerImpl @Inject constructor(
podState.lastStatusResponseReceived = SystemClock.elapsedRealtime()
updateLastBolusFromResponse(response.bolusPulsesRemaining)
if (podState.activationTime == null) {
podState.activationTime = System.currentTimeMillis() - (response.minutesSinceActivation * 60000)
podState.activationTime = System.currentTimeMillis() - (response.minutesSinceActivation * 60_000)
}
store()