Skip to content

Commit

Permalink
Fix type for calories (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
alemf authored Jun 7, 2022
1 parent a56c9fd commit fd3efc9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public void onSuccess(DataReadResponse dataReadResponse) {
String dataTypeName = dp.getDataType().getName();
switch (dataTypeName) {
case "com.google.calories.expended":
activity.put("calories", dp.getValue(field).toString());
activity.put("calories", dp.getValue(field).asFloat());
break;
}
}
Expand Down

0 comments on commit fd3efc9

Please sign in to comment.