Merge "Revert "Fix biometric context update problem."" into udc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
edb9322137
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user