From f6c113550fc2c71738f2017b11bce44e2f1eadbd Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Mon, 17 Sep 2018 18:30:57 +0200 Subject: [PATCH] remove static ConfigBuilderPlugin.activeSensitivity --- .../androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java | 4 ++-- .../plugins/IobCobCalculator/IobCobCalculatorPlugin.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java index f6f75f7dec..cf1604cdce 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java @@ -45,7 +45,7 @@ public class ConfigBuilderPlugin extends PluginBase { private ProfileInterface activeProfile; private APSInterface activeAPS; private InsulinInterface activeInsulin; - private static SensitivityInterface activeSensitivity; + private SensitivityInterface activeSensitivity; private static ArrayList pluginList; @@ -252,7 +252,7 @@ public class ConfigBuilderPlugin extends PluginBase { return activePump; } - public static SensitivityInterface getActiveSensitivity() { + public SensitivityInterface getActiveSensitivity() { return activeSensitivity; } diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/IobCobCalculator/IobCobCalculatorPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/IobCobCalculator/IobCobCalculatorPlugin.java index 22c269d8c9..65786eb2d4 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/IobCobCalculator/IobCobCalculatorPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/IobCobCalculator/IobCobCalculatorPlugin.java @@ -530,7 +530,7 @@ public class IobCobCalculatorPlugin extends PluginBase { public AutosensResult detectSensitivityWithLock(long fromTime, long toTime) { synchronized (dataLock) { - return ConfigBuilderPlugin.getActiveSensitivity().detectSensitivity(this, fromTime, toTime); + return ConfigBuilderPlugin.getPlugin().getActiveSensitivity().detectSensitivity(this, fromTime, toTime); } }