diff options
| author | 2022-09-20 17:57:16 +0000 | |
|---|---|---|
| committer | 2022-09-26 14:58:53 +0000 | |
| commit | e41d5cc7632b9aa615448e2f6218a4d00a81cbc1 (patch) | |
| tree | 9f72772bc36eb5a6338eef870eeb15bbba18207c /libs/androidfw/StringPool.cpp | |
| parent | 4513768e3be8fe8f10771f233b50eb019a7a95bd (diff) | |
[SB Refactor] Turn the wifi ViewModel into an @SysUISingleton and
instead create separate view models per location.
This CL eliminates the many duplicate logs by:
1) Making WifiViewModel a Singleton, so we only ever have one of each
flow.
2) Adding 1 ViewModel class per location, which just references the
singleton view model flows.
3) Making each flow inside WifiViewModel a StateFlow, so that its logic
(including its logging logic) isn't duplicated each time we re-use
one of the flows.
Bug: 238425913
Test: manual: Verified wifi icon is tinted different colors in each of
the 3 locations
Test: manual: Verify wifi icon still updates
Test: manual: Verify we don't get duplicate activity logs
Test: statusbar.pipeline tests
Change-Id: I6ab0245a83858875c4e63baf9bb6a8c482d1fe55
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions