Turn OmnipodCommunicationManager into a singleton

This commit is contained in:
Steffen Müthing 2020-08-19 13:09:01 +02:00
parent ba69b2ffd3
commit 3191b54208

View file

@ -6,6 +6,7 @@ import java.util.Collections;
import java.util.List; import java.util.List;
import javax.inject.Inject; import javax.inject.Inject;
import javax.inject.Singleton;
import info.nightscout.androidaps.logging.AAPSLogger; import info.nightscout.androidaps.logging.AAPSLogger;
import info.nightscout.androidaps.logging.LTag; 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. * Created by andy on 6/29/18.
*/ */
// TODO make singleton and rename to OmnipodRileyLinkCommunicationManager // TODO rename to OmnipodRileyLinkCommunicationManager
@Singleton
public class OmnipodCommunicationManager extends RileyLinkCommunicationManager { public class OmnipodCommunicationManager extends RileyLinkCommunicationManager {
@Inject OmnipodPumpStatus omnipodPumpStatus; @Inject OmnipodPumpStatus omnipodPumpStatus;