Skip to content
Commit b8bf87e8 authored by Yuri Ufimtsev's avatar Yuri Ufimtsev
Browse files

Fix the Safety Center Status showing logic to cover edge cases

In old logic it was possible to end in a state where refresh is not in
progress with a request to continue scanning animation, rendering the
first frame of scanning animation instead of the final status icon.
Event sequence for this case:
1) receive initial refreshing SafetyCenterData with Severity Level A
2) wait until scanning animation is running in loops
3) do not receive any refreshing SafetyCenterData with Severity Level B
4) receive final non-refreshing SafetyCenterData with Severity Level B

Test: atest PermissionControllerMockingTests

Bug: 261160581
Relnote: Fixed a bug
Change-Id: Ifff75d4e3cce0c812b87836797efc33b007ac2d2
parent 0a8a7fc9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment