fix exception in sms comm
This commit is contained in:
parent
1b69771893
commit
b80c382512
1 changed files with 94 additions and 91 deletions
|
@ -262,6 +262,7 @@ public class SmsCommunicatorPlugin implements PluginBase {
|
||||||
Answers.getInstance().logCustom(new CustomEvent("SMS_Bg"));
|
Answers.getInstance().logCustom(new CustomEvent("SMS_Bg"));
|
||||||
break;
|
break;
|
||||||
case "LOOP":
|
case "LOOP":
|
||||||
|
if (splited.length > 1)
|
||||||
switch (splited[1].toUpperCase()) {
|
switch (splited[1].toUpperCase()) {
|
||||||
case "DISABLE":
|
case "DISABLE":
|
||||||
case "STOP":
|
case "STOP":
|
||||||
|
@ -333,6 +334,7 @@ public class SmsCommunicatorPlugin implements PluginBase {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "TREATMENTS":
|
case "TREATMENTS":
|
||||||
|
if (splited.length > 1)
|
||||||
switch (splited[1].toUpperCase()) {
|
switch (splited[1].toUpperCase()) {
|
||||||
case "REFRESH":
|
case "REFRESH":
|
||||||
Intent restartNSClient = new Intent(Intents.ACTION_RESTART);
|
Intent restartNSClient = new Intent(Intents.ACTION_RESTART);
|
||||||
|
@ -347,6 +349,7 @@ public class SmsCommunicatorPlugin implements PluginBase {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "NSCLIENT":
|
case "NSCLIENT":
|
||||||
|
if (splited.length > 1)
|
||||||
switch (splited[1].toUpperCase()) {
|
switch (splited[1].toUpperCase()) {
|
||||||
case "RESTART":
|
case "RESTART":
|
||||||
Intent restartNSClient = new Intent(Intents.ACTION_RESTART);
|
Intent restartNSClient = new Intent(Intents.ACTION_RESTART);
|
||||||
|
|
Loading…
Reference in a new issue