From 8d4e9f00437a8e2cae78b2e3cb17b19677281eca Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Thu, 26 Apr 2018 01:16:31 +0200 Subject: [PATCH] Add future carbs on watch. --- .../plugins/Wear/wearintegration/WatchUpdaterService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Wear/wearintegration/WatchUpdaterService.java b/app/src/main/java/info/nightscout/androidaps/plugins/Wear/wearintegration/WatchUpdaterService.java index 171f37959d..35a224c5f3 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Wear/wearintegration/WatchUpdaterService.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Wear/wearintegration/WatchUpdaterService.java @@ -722,6 +722,9 @@ public class WatchUpdaterService extends WearableListenerService implements CobInfo cobInfo = IobCobCalculatorPlugin.getPlugin().getCobInfo(false, "WatcherUpdaterService"); if (cobInfo.displayCob != null) { cobStringResult = DecimalFormatter.to0Decimal(cobInfo.displayCob) + "g"; + if (cobInfo.futureCarbs > 0) { + cobStringResult += " (" + DecimalFormatter.to0Decimal(cobInfo.futureCarbs) + ")"; + } } return cobStringResult; }