normalize mg/dl mg/dL

This commit is contained in:
Milos Kozak 2016-10-11 23:30:13 +02:00
parent 9f1bbd35bd
commit 9cd8602f83

View file

@ -137,11 +137,11 @@ public class NSProfile {
if (profile != null) {
try {
units = profile.getString("units");
return units;
return units.toLowerCase();
} catch (JSONException e) {
log.error("Profile not found. Failing over to main JSON");
try {
json.getString("units");
return json.getString("units").toLowerCase();
} catch (JSONException e1) {
e1.printStackTrace();
Crashlytics.log("Profile failover failed too");