Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fcb4e264 authored by Vincent Wang's avatar Vincent Wang
Browse files

Fix biometric context update problem.

Bug: b/288761850
Test: Check b/288761850
Change-Id: I0b0c8e8096ab545c03088cc38bf2d765815e5c2f
parent 7b41e4d7
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -260,14 +260,6 @@ 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 {
@@ -289,7 +281,12 @@ class FingerprintAuthenticationClient
            mALSProbeCallback.getProbe().enable();
        }

        return cancel;
        if (session.hasContextMethods()) {
            return session.getSession().authenticateWithContext(
                    mOperationId, opContext.toAidlContext(getOptions()));
        } else {
            return session.getSession().authenticate(mOperationId);
        }
    }

    @Override