diff options
| author | 2023-11-17 17:40:28 +0100 | |
|---|---|---|
| committer | 2023-11-22 13:53:36 +0100 | |
| commit | d6c74b3a3231f96a2a62b03a48a470e9e4522268 (patch) | |
| tree | 7d262063f1e7fd1ac954d88b660351b81861f413 /libs/androidfw/FileStream.cpp | |
| parent | 7f3c67b18a946f59b06d4947881ed49447a7c51b (diff) | |
Make FooterViewModel children hold flows.
Instead of the parent view holding a flow of the child view, it makes
more sense for the child view to hold a flow of the visibility instead.
That way we're not triggering updates unnecessarily.
The footer view already knows to ignore duplicate updates for fields,
but if we can avoid triggering a downstream listener that's a small win
for performance. Plus it avoids holding constant values in a flow
unnecessarily.
Bug: 293167744
Test: manual + FooterViewModelTest
Flag: ACONFIG com.systemui.notifications_footer_refactor_flag DEVELOPMENT
Change-Id: Ic512b2fbdeb1d99c4aeeab1500221ae17d3e1087
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions