Space-optimize COB on watch.
This commit is contained in:
parent
8d4e9f0043
commit
f3bc59003e
1 changed files with 3 additions and 2 deletions
|
@ -721,10 +721,11 @@ public class WatchUpdaterService extends WearableListenerService implements
|
||||||
String cobStringResult = "--";
|
String cobStringResult = "--";
|
||||||
CobInfo cobInfo = IobCobCalculatorPlugin.getPlugin().getCobInfo(false, "WatcherUpdaterService");
|
CobInfo cobInfo = IobCobCalculatorPlugin.getPlugin().getCobInfo(false, "WatcherUpdaterService");
|
||||||
if (cobInfo.displayCob != null) {
|
if (cobInfo.displayCob != null) {
|
||||||
cobStringResult = DecimalFormatter.to0Decimal(cobInfo.displayCob) + "g";
|
cobStringResult = DecimalFormatter.to0Decimal(cobInfo.displayCob);
|
||||||
if (cobInfo.futureCarbs > 0) {
|
if (cobInfo.futureCarbs > 0) {
|
||||||
cobStringResult += "(" + DecimalFormatter.to0Decimal(cobInfo.futureCarbs) + ")";
|
cobStringResult += "(" + DecimalFormatter.to0Decimal(cobInfo.futureCarbs) + ")";
|
||||||
}
|
}
|
||||||
|
cobStringResult += "g";
|
||||||
}
|
}
|
||||||
return cobStringResult;
|
return cobStringResult;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue