Merge pull request #668 from savek-cc/careportal-bg-update

fix display unit when updating careportal entry for historic bg value
This commit is contained in:
AdrianLxM 2018-02-05 22:47:46 +01:00 committed by GitHub
commit 8e69573710
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -415,7 +415,7 @@ public class NewNSTreatmentDialog extends DialogFragment implements View.OnClick
if ((data.size() > 0) &&
(data.get(0).date > millis - 7 * 60 * 1000L) &&
(data.get(0).date < millis + 7 * 60 * 1000L)) {
editBg.setValue(data.get(0).value);
editBg.setValue(Profile.fromMgdlToUnits(data.get(0).value, profile != null ? profile.getUnits() : Constants.MGDL));
}
}