From 6dcdeb2bbc0f67fd3903400573bfd6a09202bd0d Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Tue, 15 Aug 2017 14:49:12 +0200 Subject: [PATCH] Overview: format target using unit specific format. --- .../androidaps/plugins/Overview/OverviewFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java index ff6218786e..79d00c9687 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java @@ -962,9 +962,9 @@ public class OverviewFragment extends Fragment implements View.OnClickListener, double low = MainApp.getConfigBuilder().getProfile().getTargetLow(); double high = MainApp.getConfigBuilder().getProfile().getTargetHigh(); if (low == high) - tempTargetView.setText("" + low); + tempTargetView.setText(Profile.toUnitsString(low, Profile.fromMgdlToUnits(low, units), units)); else - tempTargetView.setText(low + " - " + high); + tempTargetView.setText(Profile.toUnitsString(low, Profile.fromMgdlToUnits(low, units), units) + " - " + Profile.toUnitsString(high, Profile.fromMgdlToUnits(high, units), units)); tempTargetView.setVisibility(View.VISIBLE); } if (Config.NSCLIENT && tempTarget == null) {