From 0b8168a62f8aba22994ffa7deee857cdce7c2a3f Mon Sep 17 00:00:00 2001 From: Andy Rozman Date: Sun, 26 Apr 2020 21:50:47 +0100 Subject: [PATCH] - refactor RileyLinkOmnipodService --- .../service/RileyLinkOmnipodService.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/service/RileyLinkOmnipodService.java b/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/service/RileyLinkOmnipodService.java index a67bfe72a9..8c9d90bb2c 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/service/RileyLinkOmnipodService.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/service/RileyLinkOmnipodService.java @@ -46,10 +46,10 @@ import info.nightscout.androidaps.utils.sharedPreferences.SP; */ public class RileyLinkOmnipodService extends RileyLinkService { - @Inject AAPSLogger aapsLogger; - @Inject Context context; +// @Inject AAPSLogger aapsLogger; +// @Inject Context context; @Inject OmnipodPumpPlugin omnipodPumpPlugin; - @Inject SP sp; +// @Inject SP sp; //private static final Logger LOG = LoggerFactory.getLogger(L.PUMPCOMM); @@ -63,11 +63,6 @@ public class RileyLinkOmnipodService extends RileyLinkService { public RileyLinkOmnipodService() { super(); instance = this; - if (isLogEnabled()) - aapsLogger.debug(LTag.PUMPCOMM,"RileyLinkOmnipodService newly constructed"); - OmnipodUtil.setOmnipodService(this); - pumpStatus = (OmnipodPumpStatus) OmnipodPumpPlugin.getPlugin().getPumpStatusData(); - //aapsLogger.debug(LTag.PUMPCOMM,"RRRRRRRRRR: " + pumpStatus); } @@ -123,6 +118,12 @@ public class RileyLinkOmnipodService extends RileyLinkService { // init rileyLinkCommunicationManager initializeErosOmnipodManager(); // TODO Dash + + if (isLogEnabled()) + aapsLogger.debug(LTag.PUMPCOMM,"RileyLinkOmnipodService newly constructed"); + OmnipodUtil.setOmnipodService(this); + pumpStatus = (OmnipodPumpStatus) OmnipodPumpPlugin.getPlugin().getPumpStatusData(); + //aapsLogger.debug(LTag.PUMPCOMM,"RRRRRRRRRR: " + pumpStatus); } private void initializeErosOmnipodManager() {