Add future carbs on watch.
This commit is contained in:
parent
2f846bc417
commit
8d4e9f0043
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue