fix double value

This commit is contained in:
Milos Kozak 2019-06-14 12:09:27 +02:00
parent 15e997abb3
commit d4858305a9

View file

@ -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();