Merge "Do not respond to ACSD if authing for keyguard" into sc-dev am: 09cb5879a1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15262478 Change-Id: Ib4138eb8245a816fc7219582ba7e1021c46e0b71
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
package com.android.systemui.biometrics;
|
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 android.os.VibrationEffect.Composition.PRIMITIVE_LOW_TICK;
|
||||||
|
|
||||||
import static com.android.internal.util.Preconditions.checkArgument;
|
import static com.android.internal.util.Preconditions.checkArgument;
|
||||||
@@ -317,8 +318,10 @@ public class UdfpsController implements DozeReceiver {
|
|||||||
@Override
|
@Override
|
||||||
public void onReceive(Context context, Intent intent) {
|
public void onReceive(Context context, Intent intent) {
|
||||||
if (mServerRequest != null
|
if (mServerRequest != null
|
||||||
|
&& mServerRequest.mRequestReason != REASON_AUTH_FPM_KEYGUARD
|
||||||
&& Intent.ACTION_CLOSE_SYSTEM_DIALOGS.equals(intent.getAction())) {
|
&& 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.onUserCanceled();
|
||||||
mServerRequest = null;
|
mServerRequest = null;
|
||||||
updateOverlay();
|
updateOverlay();
|
||||||
|
|||||||
Reference in New Issue
Block a user