Hold back button issue

Hello everyone, I'm developing a watchface for the enduro 3.

I chose to render some elements, the simplest ones, through the layout.xml file and then add a graph that is drawn with the dc.fillRectangle function. The watch is set so that, holding down the BACK button, the watchface is shown.

Everithing works fine except when I hold BACK button, the watchface is shown but I have a problem whereby the displays do not update all the data together: - the time has a glitch whereby the previous minute is shown first (11:15) and then redraw to right time (11:16) - the graph remains black for a second and then is drawn I thought that the graph function was too complex but replacing the graph with a simple text using dc.drawText I have the same problem. This is my onUpdate method:

pastecode.io/.../grg5cacd
Where am I going wrong?
Thank's!

  • I don't think you're doing anything wrong, this is known behavior that others have reported and can be seen with any Connect IQ watchface.

    I assume that an image of taken of the watchface when you switch away from it so that it can be shown instantly when you switch back to the watchface in the way you described. (The same thing happens when naturally returning to a CIQ watchface after an activity is saved or discarded. I've also seen it when exiting settings.)

    I can easily reproduce this behavior with any CIQ watchface, especially if it displays seconds (so you can test it quickly and it's still obvious that you're initially viewing a cached image from the past).

  • Yeah I understand the issue perfectly, like I said others have mentioned it and I can reproduce it whenever I want.

    I just don't think there's anything you can do on your end to fix it.

    You could post a CIQ bug report (although I'm guessing the CIQ team will claim it is a firmware issue, and not in their department).

    I will say there was a somewhat similar issue where CIQ watchfaces (and not native watchfaces) would disappear instantly (with a screen clear) when you scrolled away from them, instead of smoothly scrolling off the screen (like a native watchface or any other screen). This was reported as a CIQ bug and the CIQ team said it's actually a firmware issue. Regardless, Garmin eventually fixed it. (I have no idea if filing the bug report actually helped - probably not).

  • Thank's... first app developed and already encountering a bug.. excellent...

    If I can accept the behavior of the graph, the behavior of the time is truly horrendous! but also on the template project it actually behaves like this...

  • I don't see a dc.clear().  You always have to clear the screen with your background color