Load pod state after initializing PodStateManager
This commit is contained in:
parent
050816ddf9
commit
da2c2110da
1 changed files with 1 additions and 0 deletions
|
@ -110,6 +110,7 @@ public class RileyLinkOmnipodService extends RileyLinkService {
|
||||||
AapsOmnipodManager instance = AapsOmnipodManager.getInstance();
|
AapsOmnipodManager instance = AapsOmnipodManager.getInstance();
|
||||||
if (instance == null) {
|
if (instance == null) {
|
||||||
PodStateManager podStateManager = new AapsPodStateManager(aapsLogger, sp, omnipodUtil, omnipodPumpStatus, rxBus, resourceHelper);
|
PodStateManager podStateManager = new AapsPodStateManager(aapsLogger, sp, omnipodUtil, omnipodPumpStatus, rxBus, resourceHelper);
|
||||||
|
podStateManager.loadPodState();
|
||||||
omnipodUtil.setPodStateManager(podStateManager);
|
omnipodUtil.setPodStateManager(podStateManager);
|
||||||
|
|
||||||
OmnipodCommunicationManager omnipodCommunicationService = new OmnipodCommunicationManager(injector, rfspy);
|
OmnipodCommunicationManager omnipodCommunicationService = new OmnipodCommunicationManager(injector, rfspy);
|
||||||
|
|
Loading…
Reference in a new issue