normalize mg/dl mg/dL
This commit is contained in:
parent
9f1bbd35bd
commit
9cd8602f83
1 changed files with 2 additions and 2 deletions
|
@ -137,11 +137,11 @@ public class NSProfile {
|
||||||
if (profile != null) {
|
if (profile != null) {
|
||||||
try {
|
try {
|
||||||
units = profile.getString("units");
|
units = profile.getString("units");
|
||||||
return units;
|
return units.toLowerCase();
|
||||||
} catch (JSONException e) {
|
} catch (JSONException e) {
|
||||||
log.error("Profile not found. Failing over to main JSON");
|
log.error("Profile not found. Failing over to main JSON");
|
||||||
try {
|
try {
|
||||||
json.getString("units");
|
return json.getString("units").toLowerCase();
|
||||||
} catch (JSONException e1) {
|
} catch (JSONException e1) {
|
||||||
e1.printStackTrace();
|
e1.printStackTrace();
|
||||||
Crashlytics.log("Profile failover failed too");
|
Crashlytics.log("Profile failover failed too");
|
||||||
|
|
Loading…
Reference in a new issue