Don't show requested UDFPS when kg isn't showing

An activity can continue to request udfps even though
it's not necessary anymore. Make sure we don't show the
affordance in this case.

Test: manually fail udfps 2+ on gpay wallet activity
and then use the bouncer to authenticate
Fixes: 215558148

Change-Id: Ic316a57184b54d272e93e5a9efe1f6331b132787
This commit is contained in:
Beverly
2022-01-20 19:23:17 +00:00
parent 9c74d73471
commit e6cb8689ee

View File

@@ -224,7 +224,8 @@ public class UdfpsKeyguardViewController extends UdfpsAnimationViewController<Ud
if (mUdfpsRequested && !getNotificationShadeVisible()
&& (!mIsBouncerVisible
|| mInputBouncerHiddenAmount != KeyguardBouncer.EXPANSION_VISIBLE)) {
|| mInputBouncerHiddenAmount != KeyguardBouncer.EXPANSION_VISIBLE)
&& mKeyguardStateController.isShowing()) {
return false;
}