Load pod state after initializing PodStateManager

This commit is contained in:
Bart Sopers 2020-08-09 14:06:45 +02:00
parent 050816ddf9
commit da2c2110da

View file

@ -110,6 +110,7 @@ public class RileyLinkOmnipodService extends RileyLinkService {
AapsOmnipodManager instance = AapsOmnipodManager.getInstance();
if (instance == null) {
PodStateManager podStateManager = new AapsPodStateManager(aapsLogger, sp, omnipodUtil, omnipodPumpStatus, rxBus, resourceHelper);
podStateManager.loadPodState();
omnipodUtil.setPodStateManager(podStateManager);
OmnipodCommunicationManager omnipodCommunicationService = new OmnipodCommunicationManager(injector, rfspy);