Overview: format target using unit specific format.
This commit is contained in:
parent
4c490c32f7
commit
6dcdeb2bbc
|
@ -962,9 +962,9 @@ public class OverviewFragment extends Fragment implements View.OnClickListener,
|
||||||
double low = MainApp.getConfigBuilder().getProfile().getTargetLow();
|
double low = MainApp.getConfigBuilder().getProfile().getTargetLow();
|
||||||
double high = MainApp.getConfigBuilder().getProfile().getTargetHigh();
|
double high = MainApp.getConfigBuilder().getProfile().getTargetHigh();
|
||||||
if (low == high)
|
if (low == high)
|
||||||
tempTargetView.setText("" + low);
|
tempTargetView.setText(Profile.toUnitsString(low, Profile.fromMgdlToUnits(low, units), units));
|
||||||
else
|
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);
|
tempTargetView.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
if (Config.NSCLIENT && tempTarget == null) {
|
if (Config.NSCLIENT && tempTarget == null) {
|
||||||
|
|
Loading…
Reference in a new issue