fix double value
This commit is contained in:
parent
15e997abb3
commit
d4858305a9
|
@ -98,7 +98,7 @@ public class ActionStartTempTarget extends Action {
|
|||
JSONObject d = new JSONObject(data);
|
||||
reason = JsonHelper.safeGetString(d, "reason");
|
||||
value.setUnits(JsonHelper.safeGetString(d, "units"));
|
||||
value.setValue(JsonHelper.safeGetInt(d, "value"));
|
||||
value.setValue(JsonHelper.safeGetDouble(d, "value"));
|
||||
duration.setMinutes(JsonHelper.safeGetInt(d, "durationInMinutes"));
|
||||
} catch (JSONException e) {
|
||||
e.printStackTrace();
|
||||
|
|
Loading…
Reference in a new issue