Reduce the trigger points for showing/hiding the scanning animation
- Previously we were showing/hiding the scanning animation based on biometric auth events.
- With this change, we only rely onShowCameraProtection and onHideCameraProtection to show/hide the scanning animation and to show the success pulse.
Fixes: 311715007
Flag: NONE
Test: everything builds
Test: manually
1. Trigger face auth, let it timeout, see that the animation is all okay
2. Trigger face auth, let it succeed, see that the animation is all okay
3. Trigger face auth, let it fail, it should be the same as the timeout scenario
4. Unlock the device, launch camera, see that the face scanning animation is not shown
5. Trigger biometric prompt, tested the same three scenarios with biometric prompt.
Change-Id: I73ede8abe1f3c9bd78de40ca459dc67fdf8cd05a
3 files changed