fix TBR formating in fragment
This commit is contained in:
parent
3287129eef
commit
e3e0a44d72
|
@ -87,7 +87,7 @@ public class TreatmentsTemporaryBasalsFragment extends SubscriberFragment {
|
||||||
if (tempBasal.isAbsolute) {
|
if (tempBasal.isAbsolute) {
|
||||||
Profile profile = ProfileFunctions.getInstance().getProfile(tempBasal.date);
|
Profile profile = ProfileFunctions.getInstance().getProfile(tempBasal.date);
|
||||||
if (profile != null) {
|
if (profile != null) {
|
||||||
holder.absolute.setText(DecimalFormatter.to0Decimal(tempBasal.tempBasalConvertedToAbsolute(tempBasal.date, profile), " U/h"));
|
holder.absolute.setText(DecimalFormatter.to2Decimal(tempBasal.tempBasalConvertedToAbsolute(tempBasal.date, profile), " U/h"));
|
||||||
holder.percent.setText("");
|
holder.percent.setText("");
|
||||||
} else {
|
} else {
|
||||||
holder.absolute.setText(MainApp.gs(R.string.noprofile));
|
holder.absolute.setText(MainApp.gs(R.string.noprofile));
|
||||||
|
|
Loading…
Reference in a new issue