commit | 4f52f105297e8360b96c999b9c1a0850af3c8240 | [log] [tgz] |
---|---|---|
author | Alejandro Nijamkin <nijamkin@google.com> | Tue Aug 27 16:50:07 2024 -0700 |
committer | Alejandro Nijamkin <nijamkin@google.com> | Wed Aug 28 19:00:38 2024 -0700 |
tree | 4f2cce2d11a86e657a6b123867adc6cc5b627394 | |
parent | a3faba291f5ac4c95db9abd98609b1f3004297a3 [diff] |
Replaces unnecessary collectLatest with collect When hydrating local MutableStateFlows, there's no need for collectLatest, just collect can do. collectLatest has worse performance characteristics so cleaning those up. Bug: 354269846 Test: smoke test with flexiglass - visited every scene before/after unlock and after relock Flag: com.android.systemui.scene_container Change-Id: Iccc30601f28c193832dcf3fb50688f224910ef09