Do not respond to ACSD if authing for keyguard

Fixes: 192391063
Test: enable AOD, enroll, go to keyguard, then turn screen off. udfps
      icon does not blink
Change-Id: I3a2e7d7662d7227cf9846e90c4147c94c865fc55
This commit is contained in:
Kevin Chyn
2021-07-12 13:34:35 -07:00
parent 73ffe99b7b
commit 56b8f377b3

View File

@@ -16,6 +16,7 @@
package com.android.systemui.biometrics;
import static android.hardware.fingerprint.IUdfpsOverlayController.REASON_AUTH_FPM_KEYGUARD;
import static android.os.VibrationEffect.Composition.PRIMITIVE_LOW_TICK;
import static com.android.internal.util.Preconditions.checkArgument;
@@ -314,8 +315,10 @@ public class UdfpsController implements DozeReceiver {
@Override
public void onReceive(Context context, Intent intent) {
if (mServerRequest != null
&& mServerRequest.mRequestReason != REASON_AUTH_FPM_KEYGUARD
&& Intent.ACTION_CLOSE_SYSTEM_DIALOGS.equals(intent.getAction())) {
Log.d(TAG, "ACTION_CLOSE_SYSTEM_DIALOGS received");
Log.d(TAG, "ACTION_CLOSE_SYSTEM_DIALOGS received, mRequestReason: "
+ mServerRequest.mRequestReason);
mServerRequest.onUserCanceled();
mServerRequest = null;
updateOverlay();