diff options
| author | 2024-01-02 18:38:20 +0000 | |
|---|---|---|
| committer | 2024-01-04 20:05:51 +0000 | |
| commit | 188b2bdd2623c46f17c316265cde4fdcf9afe59d (patch) | |
| tree | 7d8877d8a8d81541548704f24f9d8b399e0e32d0 /libs/androidfw/FileStream.cpp | |
| parent | ae34ea145b10c8473045612da483c813312c38ac (diff) | |
Fix race condition between PromptIconViewBinder and BiometricSizeBinder
Sets BiometricPrompt view invisible until all resizing is complete. Adds
new MutableStateFlow updated on iconView onCompositionLoadedListener,
and combines this new flow with the BiometricSizeBinder viewModel.size
collect call, to force the resizing logic to wait for the iconAsset to
update first to account for it in the prompt size. Reworking of
ag/25666425 to avoid CTS failures the original CL caused
Flag: NONE
Fixes: 313605043
Bug: 317291041
Test: atest CtsBiometricsTestCases
Test: (manual) manually verified prompt appears only once and in the correct size, no resizing visible to the user
Change-Id: Ic3cbf1785737c19c5434030d45a73b2435328a71
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions