Update SmsCommunicatorPlugin.java
This commit is contained in:
parent
79a6b65bb9
commit
5443bb4fba
|
@ -264,6 +264,7 @@ public class SmsCommunicatorPlugin implements PluginBase {
|
||||||
case "BOLUS":
|
case "BOLUS":
|
||||||
if (new Date().getTime() - lastRemoteBolusTime.getTime() < Constants.remoteBolusMinDistance) {
|
if (new Date().getTime() - lastRemoteBolusTime.getTime() < Constants.remoteBolusMinDistance) {
|
||||||
reply = MainApp.sResources.getString(R.string.remotebolusnotallowed);
|
reply = MainApp.sResources.getString(R.string.remotebolusnotallowed);
|
||||||
|
newSms = new Sms(receivedSms.phoneNumber, reply, new Date());
|
||||||
} else if (splited.length > 1) {
|
} else if (splited.length > 1) {
|
||||||
amount = SafeParse.stringToDouble(splited[1]);
|
amount = SafeParse.stringToDouble(splited[1]);
|
||||||
amount = MainApp.getConfigBuilder().applyBolusConstraints(amount);
|
amount = MainApp.getConfigBuilder().applyBolusConstraints(amount);
|
||||||
|
|
Loading…
Reference in a new issue