diff options
| author | 2023-07-10 21:07:39 +0000 | |
|---|---|---|
| committer | 2023-07-10 21:40:11 +0000 | |
| commit | c53c72ee19166965357b537f5bf1472f69aa4073 (patch) | |
| tree | 111cbc362dd9b15072810204a71b77efacd9821b /libs/androidfw/StringPool.cpp | |
| parent | e6ac1838482a36aa3626c1c059c118294411e877 (diff) | |
[Status Bar] Fetch WifiManager.isWifiEnabled in the background.
Note: The `initialValue =` in #logDiffsForTable and #stateIn can't call
suspending functions, so they're updated to just be `false`. To make up
for that, an #onStart is added that will fetch the value and the flow is
updated to SharingStarted.Eagerly so that the value is immediately
fetched. This ensures that
WifiRepositoryImplTest#isWifiEnabled_initiallyGetsWifiManagerValue still
passes.
Fixes: 270039915
Test: toggle wifi on/off > verify wifi icon responds appropriately
Test: turn wifi on > restart device > verify isWifiEnabled is true on
start (verified via logging)
Test: turn wifi off > restart device > verify isWifiEnabled is false on
start (verified via logging)
Test: atest WifiRepositoryImplTest
Change-Id: Ifd577a0ae2c495a9d96619851021a37c4bff3cd7
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions