From 3191b542085582924d14a625954b5b113220a260 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20M=C3=BCthing?= Date: Wed, 19 Aug 2020 13:09:01 +0200 Subject: [PATCH] Turn OmnipodCommunicationManager into a singleton --- .../pump/omnipod/comm/OmnipodCommunicationManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/comm/OmnipodCommunicationManager.java b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/comm/OmnipodCommunicationManager.java index bea8e53f46..661f8b8140 100644 --- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/comm/OmnipodCommunicationManager.java +++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/comm/OmnipodCommunicationManager.java @@ -6,6 +6,7 @@ import java.util.Collections; import java.util.List; import javax.inject.Inject; +import javax.inject.Singleton; import info.nightscout.androidaps.logging.AAPSLogger; import info.nightscout.androidaps.logging.LTag; @@ -49,7 +50,8 @@ import info.nightscout.androidaps.plugins.pump.omnipod.util.OmnipodConst; /** * Created by andy on 6/29/18. */ -// TODO make singleton and rename to OmnipodRileyLinkCommunicationManager +// TODO rename to OmnipodRileyLinkCommunicationManager +@Singleton public class OmnipodCommunicationManager extends RileyLinkCommunicationManager { @Inject OmnipodPumpStatus omnipodPumpStatus;