Properly show TBR duration in fragment

This commit is contained in:
TebbeUbben 2019-01-19 03:08:14 +01:00
parent 4d213eae7d
commit 65400560dd

View file

@ -272,7 +272,7 @@ public class LocalInsightFragment extends SubscriberFragment implements View.OnC
if (LocalInsightPlugin.getInstance().getActiveTBR() == null) return;
ActiveTBR activeTBR = LocalInsightPlugin.getInstance().getActiveTBR();
statusItems.add(getStatusItem(MainApp.gs(R.string.pump_tempbasal_label),
MainApp.gs(R.string.tbr_formatter, activeTBR.getPercentage(), activeTBR.getRemainingDuration(), activeTBR.getInitialDuration())));
MainApp.gs(R.string.tbr_formatter, activeTBR.getPercentage(), activeTBR.getInitialDuration() - activeTBR.getRemainingDuration(), activeTBR.getInitialDuration())));
}
private void getBolusItems(List<View> statusItems) {