Update SmsCommunicatorPlugin.java

This commit is contained in:
warstar2187 2016-10-27 02:23:47 +09:00 committed by GitHub
parent 79a6b65bb9
commit 5443bb4fba

View file

@ -264,6 +264,7 @@ public class SmsCommunicatorPlugin implements PluginBase {
case "BOLUS":
if (new Date().getTime() - lastRemoteBolusTime.getTime() < Constants.remoteBolusMinDistance) {
reply = MainApp.sResources.getString(R.string.remotebolusnotallowed);
newSms = new Sms(receivedSms.phoneNumber, reply, new Date());
} else if (splited.length > 1) {
amount = SafeParse.stringToDouble(splited[1]);
amount = MainApp.getConfigBuilder().applyBolusConstraints(amount);