Revert "Fix biometric context update problem."

This reverts commit fcb4e264ab.

Reason for revert: The original CL can't fix bug, we will submit another CL for fixing bug.

Change-Id: I6dd591384117aedadf7803d279816e36674e7e28
This commit is contained in:
Vincent Wang
2023-08-02 05:39:22 +00:00
committed by Android (Google) Code Review
parent fcb4e264ab
commit 7e6060dc70

View File

@@ -260,6 +260,14 @@ class FingerprintAuthenticationClient
final AidlSession session = getFreshDaemon();
final OperationContextExt opContext = getOperationContext();
final ICancellationSignal cancel;
if (session.hasContextMethods()) {
cancel = session.getSession().authenticateWithContext(
mOperationId, opContext.toAidlContext(getOptions()));
} else {
cancel = session.getSession().authenticate(mOperationId);
}
getBiometricContext().subscribe(opContext, ctx -> {
if (session.hasContextMethods()) {
try {
@@ -281,12 +289,7 @@ class FingerprintAuthenticationClient
mALSProbeCallback.getProbe().enable();
}
if (session.hasContextMethods()) {
return session.getSession().authenticateWithContext(
mOperationId, opContext.toAidlContext(getOptions()));
} else {
return session.getSession().authenticate(mOperationId);
}
return cancel;
}
@Override