Implement DirtyValues for Quick Settings screen - #2471
Conversation
|
Build size and comparison to main:
|
|
@mark9064 I would very much appreciate your review of this. I see that statusIcons.Update() already uses dirty values to only update if there is a change So I only needed to update the time at the top of the screen to use dirty values. I thought I might have to use override for the UpdateScreen but the compiler didn't like that If I got it right, I'll move on to a few other screens - like the apps screen which has a similar layout with status icons and the time. It works as expected on my watch. |
There was a problem hiding this comment.
This is a nicer solution!
The logic with dirtyvalue all looks good. When you said you thought you might have to use override, what did you mean by that?
There's a few other places that have Refresh() in the wrong place - maybe you will find this useful for your changes: mark9064@43bfddc
Thank you
I saw in other screens that use DirtyValues that the header file has
Very useful, thank you. I have updated Tile.cpp (not pushed yet) and then started on BatteryInfo and the lvgl was not lining up. Now I can see why! |
|
Ahhhhh right I see The Since QuickSettings is using its own helper for LVGL and its own |
|
Got it. Thank you. I had started to refactor using |
|
LOL don't worry that isn't a PR yet. I can rebase around any conflicts, I don't mind |
Implemented as an alternative to #2257