From 66f6ddf0520544e4f69449d5f1ee8faaf38d3e11 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 31 Mar 2018 12:12:49 +0200 Subject: [PATCH] Subscribe fix --- .../androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java | 3 ++- .../plugins/SmsCommunicator/SmsCommunicatorPlugin.java | 2 +- 2 files changed, 3 insertions(+), 2 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 dace12d1ba..60f75718d9 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 @@ -192,12 +192,14 @@ public class ConfigBuilderPlugin extends PluginBase implements TreatmentsInterfa } } + // Detect settings prior 1.60 private void upgradeSettings() { if (!SP.contains("ConfigBuilder_1_NSProfilePlugin_Enabled")) return; if (Config.logPrefsChange) log.debug("Upgrading stored settings"); for (PluginBase p : pluginList) { + log.debug("Processing " + p.getName()); for (int type = 1; type < 11; type++) { PluginType newType; switch (type) { @@ -250,7 +252,6 @@ public class ConfigBuilderPlugin extends PluginBase implements TreatmentsInterfa } } } - verifySelectionInCategories(); } public static CommandQueue getCommandQueue() { diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/SmsCommunicator/SmsCommunicatorPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/SmsCommunicator/SmsCommunicatorPlugin.java index 19550fc534..9162de1750 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/SmsCommunicator/SmsCommunicatorPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/SmsCommunicator/SmsCommunicatorPlugin.java @@ -138,7 +138,7 @@ public class SmsCommunicatorPlugin extends PluginBase { } @Subscribe - private void processSettings(final EventPreferenceChange ev) { + public void processSettings(final EventPreferenceChange ev) { if (ev == null || ev.isChanged(R.string.key_smscommunicator_allowednumbers)) { String settings = SP.getString(R.string.key_smscommunicator_allowednumbers, "");