combov2: Reset states associated with pump when unpairing
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
This commit is contained in:
parent
cdfb197c54
commit
c535e96ec7
1 changed files with 6 additions and 0 deletions
|
@ -1389,6 +1389,12 @@ class ComboV2Plugin @Inject constructor (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Reset these states since they are associated
|
||||||
|
// with the now unpaired pump.
|
||||||
|
lastConnectionTimestamp = 0L
|
||||||
|
activeBasalProfile = null
|
||||||
|
lastActiveBasalProfileNumber = null
|
||||||
|
|
||||||
// Reset the UI flows that are associated with the pump
|
// Reset the UI flows that are associated with the pump
|
||||||
// that just got unpaired to prevent the UI from showing
|
// that just got unpaired to prevent the UI from showing
|
||||||
// information about that now-unpaired pump anymore.
|
// information about that now-unpaired pump anymore.
|
||||||
|
|
Loading…
Reference in a new issue