aboutsummaryrefslogtreecommitdiffstats
path: root/lib/presentation/router
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2024-09-24 16:10:43 -0400
committerScott Murray <scott.murray@konsulko.com>2024-09-24 16:20:40 -0400
commitbdc33c218e3e62e5a3121d3ab0de6e26ef7ad3eb (patch)
tree29c01094aafeb9aaab6d3aef04354502fefb9cd9 /lib/presentation/router
parent7ea2d37528da61ff40a50da5843397d51fc0e789 (diff)
Fix storage API and databroker interaction on start up
Changes: - The persisted values read in by the forced early init of the storage API were getting overridden by the defaults coming from the databroker in the case of preferences that map directly to VSS signals. Refactor the preference updating code to move the VSS updating calls to reusable functions in ValClient, and then use those to update the VSS signal values right after connecting to the databroker. - Remove the recursive initialization call from UnitsNotifier's loadSettingsUnits function, as in my testing it broke start up, and the recursion seems incorrect. There are definitely issues with racing with the storage API daemon, and the homescreen completely hangs if it is not running. The fix for that is to switch to a more Flutter typical asynchronous initialization of the storage API connection, and future rework will be in that direction. - Change various prints in the storage API code to debugPrint to start trying to clean up complaints from "flutter analyze". Bug-AGL: SPEC-5250 Change-Id: I6dc9a45569453254d1565038048305f94d121db6 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'lib/presentation/router')
0 files changed, 0 insertions, 0 deletions