BangleApps icon indicating copy to clipboard operation
BangleApps copied to clipboard

Drained: Redraw continues after battery charged above limit

Open thyttan opened this issue 8 months ago • 4 comments

  1. drained active since battery low
  2. Attach charging cable
  3. Bangle exits drained and displays my chosen clock face, Modern clock.
  4. Drained redraw logic runs and draws on top of Modern clock. (BUG! 🐛)

So probably needs some tweaks to cleanup in remove handler/uiRemove method.

thyttan avatar Jul 14 '25 11:07 thyttan

I suspect the draw call or the charging handler are what's causing it:

https://github.com/espruino/BangleApps/blob/570d15daca49b8b2b95db509ada94702d6609d78/apps/drained/app.ts#L149-L155

The load call is assumed to clear everything so I suspect fastload is what's keeping the handlers around - if you're using fastload?

bobrippling avatar Jul 14 '25 17:07 bobrippling

I do use fastload utils. Sorry for not thinking of that! That all makes sense then and it's in order. User error on my part.

Thanks!

thyttan avatar Jul 14 '25 17:07 thyttan

Actually - what would you think if I added compatibility with fastload utils?

thyttan avatar Jul 14 '25 17:07 thyttan

Go for it - we could make it generic and just remove that charging handler (on restore) perhaps

bobrippling avatar Jul 14 '25 17:07 bobrippling