Subscribe fix
This commit is contained in:
parent
364364f205
commit
66f6ddf052
2 changed files with 3 additions and 2 deletions
|
@ -192,12 +192,14 @@ public class ConfigBuilderPlugin extends PluginBase implements TreatmentsInterfa
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Detect settings prior 1.60
|
||||||
private void upgradeSettings() {
|
private void upgradeSettings() {
|
||||||
if (!SP.contains("ConfigBuilder_1_NSProfilePlugin_Enabled"))
|
if (!SP.contains("ConfigBuilder_1_NSProfilePlugin_Enabled"))
|
||||||
return;
|
return;
|
||||||
if (Config.logPrefsChange)
|
if (Config.logPrefsChange)
|
||||||
log.debug("Upgrading stored settings");
|
log.debug("Upgrading stored settings");
|
||||||
for (PluginBase p : pluginList) {
|
for (PluginBase p : pluginList) {
|
||||||
|
log.debug("Processing " + p.getName());
|
||||||
for (int type = 1; type < 11; type++) {
|
for (int type = 1; type < 11; type++) {
|
||||||
PluginType newType;
|
PluginType newType;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
@ -250,7 +252,6 @@ public class ConfigBuilderPlugin extends PluginBase implements TreatmentsInterfa
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
verifySelectionInCategories();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static CommandQueue getCommandQueue() {
|
public static CommandQueue getCommandQueue() {
|
||||||
|
|
|
@ -138,7 +138,7 @@ public class SmsCommunicatorPlugin extends PluginBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
private void processSettings(final EventPreferenceChange ev) {
|
public void processSettings(final EventPreferenceChange ev) {
|
||||||
if (ev == null || ev.isChanged(R.string.key_smscommunicator_allowednumbers)) {
|
if (ev == null || ev.isChanged(R.string.key_smscommunicator_allowednumbers)) {
|
||||||
String settings = SP.getString(R.string.key_smscommunicator_allowednumbers, "");
|
String settings = SP.getString(R.string.key_smscommunicator_allowednumbers, "");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue