Acknowledged

Bug: batteryInDays() resets to 1 when opening the activity menu

I developed a watch face which colors the minutes depending on the amount of days left for the battery.

However whenever I open the activity menu, the color sets to yellow for a very brief moment right before the menu appears. This happens with the code below and even on a fully charged battery. When leaving the menu it resets to green (if batteryInDays is >= 7).

It does not happen with using the results from "battery", i.e. the percentage.

If I replace one of my datafields with the days returned, I see that it always resets to 1 if you open the menu.

Tested on Fenix 7x, SDK 4.1.5

var colorMinutes = Gfx.COLOR_GREEN;
if (stats.batteryInDays < 7) {

 colorMinutes = Gfx.COLOR_YELLOW;

}
dc.setColor(colorMinutes, Gfx.COLOR_TRANSPARENT);
dc.drawText(XpositionM, YpositionHM, customFont, minutesFormatted, Gfx.TEXT_JUSTIFY_RIGHT);