From 65400560dd715c424daf41b7cdcdc3ba154f0942 Mon Sep 17 00:00:00 2001 From: TebbeUbben Date: Sat, 19 Jan 2019 03:08:14 +0100 Subject: [PATCH] Properly show TBR duration in fragment --- .../plugins/PumpInsightLocal/LocalInsightFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsightLocal/LocalInsightFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsightLocal/LocalInsightFragment.java index ffe372f5ec..564a86b4a3 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsightLocal/LocalInsightFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsightLocal/LocalInsightFragment.java @@ -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 statusItems) {