remove static ConfigBuilderPlugin.activeSensitivity

This commit is contained in:
Milos Kozak 2018-09-17 18:30:57 +02:00
parent dc563df5f0
commit f6c113550f
2 changed files with 3 additions and 3 deletions

View file

@ -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<PluginBase> pluginList;
@ -252,7 +252,7 @@ public class ConfigBuilderPlugin extends PluginBase {
return activePump;
}
public static SensitivityInterface getActiveSensitivity() {
public SensitivityInterface getActiveSensitivity() {
return activeSensitivity;
}

View file

@ -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);
}
}