diff options
| author | 2024-03-25 19:57:00 +0000 | |
|---|---|---|
| committer | 2024-03-25 20:01:15 +0000 | |
| commit | a314b13257225c4b7eeb7c986328ddfc1e28dea7 (patch) | |
| tree | 1e3f39261a2bce8233d2b3e1dbd9c46b8344ae3e /libs/androidfw/StringPool.cpp | |
| parent | fdfea51df1083975c2660a68bbeadc97a2992720 (diff) | |
On fold/unfold, recalculate notif count immediately
One of the dependent flows was using shareIn, which prevents
the combine from running right away. Switching to stateIn
allows caching of the last value, which is the correct model
for this. Fold/unfold triggers this because the view is
detached then reattached, causing the previous coroutine
to stop and a new one to start.
Fixes: 331164146
Test: atest SharedNotificationContainerViewModelTest
Flag: ACONFIG com.android.systemui.migrate_clocks_to_blueprint
TEAMFOOD
Change-Id: Ib5ce8e77f6e07c925398a3ccc4af9144894cad43
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions