From 2844be85b5ccf1150ce98d7c881bd943d1320b6f Mon Sep 17 00:00:00 2001 From: TebbeUbben Date: Sun, 22 Apr 2018 13:44:12 +0200 Subject: [PATCH] Don't create TBR record when pump has been paused --- .../plugins/PumpInsight/history/HistoryIntentAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsight/history/HistoryIntentAdapter.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsight/history/HistoryIntentAdapter.java index c3cab11772..244537af3e 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsight/history/HistoryIntentAdapter.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsight/history/HistoryIntentAdapter.java @@ -183,7 +183,7 @@ class HistoryIntentAdapter { } if (intent.hasExtra(HistoryBroadcast.EXTRA_OLD_STATUS_TIME)) { String oldStatus = intent.getStringExtra(HistoryBroadcast.EXTRA_OLD_STATUS); - if (oldStatus.equals("STOPPED") ||oldStatus.equals("PAUSED")) { + if (oldStatus.equals("STOPPED")) { Date oldStatusTime = getDateExtra(intent, HistoryBroadcast.EXTRA_OLD_STATUS_TIME); int duration = (int) ((newStatusTime.getTime() - oldStatusTime.getTime()) / 60000);