Drained: Redraw continues after battery charged above limit
-
drainedactive since battery low - Attach charging cable
- Bangle exits
drainedand displays my chosen clock face, Modern clock. - Drained redraw logic runs and draws on top of Modern clock. (BUG! 🐛)
So probably needs some tweaks to cleanup in remove handler/uiRemove method.
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?
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!
Actually - what would you think if I added compatibility with fastload utils?
Go for it - we could make it generic and just remove that charging handler (on restore) perhaps