Invoke FaceScanningAnimationOverlay#onReloadResAndMeasure whenever face sensor location changes.
There is a race condition between
1. AuthController#onConfigurationChanged
2. ScreenDecorations#onConfigurationChanged
This results in ScreenDecorations using the old value faceSensorLocation instead of
the new value that is available after AuthController#onConfigurationChanged completes.
Fixes: 263449289
Test: atest ScreenDecorationsTest
Test: manually,
1. On a device that supports multiple resolutions
2. Go to Settings -> Display -> Screen resolution -> change to smaller resolution
3. Go to Lockscreen and trigger face auth
4. Unlock the device
5. Settings -> Display -> Screen resolution -> change to bigger resolution
6. Go to Lockscreen and trigger face auth
7. Confirm that the face scanning animation is not cut off at the bottom.
Change-Id: Icb5cb9a03e9434de30fccf8f264463f24d9f2562
7 files changed