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