Subscribe fix

This commit is contained in:
Milos Kozak 2018-03-31 12:12:49 +02:00
parent 364364f205
commit 66f6ddf052
2 changed files with 3 additions and 2 deletions

View file

@ -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() {

View file

@ -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, "");