Commit Graph

7 Commits (5240c4b1d307c7e39394a59585cb02487f1b9da0)

Author SHA1 Message Date
Richard de Boer 4473acdbde
messagelist: Fix app crashing when new message arrives
new Layout(...) calls Bangle.setUI(), causing uiRemove() to be called
whenever a new messages arrives, instead of only when the app exits.

This fixes that by unsetting Bangle.uiRemove before calling Layout, and
restoring it afterwards.
2023-08-19 13:48:17 +02:00
Richard de Boer c9ba8997b6
messagelist: add `debug()` statements
Set `global.DEBUG_MESSAGELIST = true` to enable
2023-08-19 13:48:17 +02:00
Gordon Williams f4740b149b messageslist: Fix invalid use of Bangle.setUI 2023-07-14 13:17:01 +01:00
Richard de Boer a5a0b180ba
messagelist: minor cleanup
Simply doing nothing when MESSAGES failed to load isn't really helpful
anyway.
2023-01-07 15:27:49 +01:00
Richard de Boer dc4c548271
messagelist: Fix messages/music updates while app is already open
(And probably some other issues)
When we call Bangle.setUI to draw a new message, Bangle.uiRemove from the
previous message screen would save messages to flash and unset "special"
messages (like `music`).
Solution: delete Bangle.uiRemove before calling Bangle.setUI.
2023-01-07 15:25:55 +01:00
Richard de Boer c0b7ccf949
messagelist: no fast unloading
Disabled because it is leaking memory (and we don't know why)
2022-12-14 20:51:33 +01:00
Richard de Boer bc3ab8ef76
messagelist: new app 2022-12-14 20:45:27 +01:00