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

Commit 80a6ca11 authored by Chandru S's avatar Chandru S
Browse files

Remove hack that was added in place of FaceManager fix

This reverts ag/23198657

Fixes: 270090188
Test: verified manually.
Change-Id: Id405b7c479c445d13b7ebf52bd225d799bce820c
parent 3f6b12d0
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -1461,14 +1461,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
                        ErrorAuthenticationStatus error = (ErrorAuthenticationStatus) status;
                        handleFaceError(error.getMsgId(), error.getMsg());
                    } else if (status instanceof FailedAuthenticationStatus) {
                        if (isFaceLockedOut()) {
                            // TODO b/270090188: remove this hack when biometrics fixes this issue.
                            // FailedAuthenticationStatus is emitted after ErrorAuthenticationStatus
                            // for lockout error is received
                            mLogger.d("onAuthenticationFailed called after"
                                    + " face has been locked out");
                            return;
                        }
                        handleFaceAuthFailed();
                    } else if (status instanceof HelpAuthenticationStatus) {
                        HelpAuthenticationStatus helpMsg = (HelpAuthenticationStatus) status;
@@ -1977,13 +1969,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab

                @Override
                public void onAuthenticationFailed() {
                    if (isFaceLockedOut()) {
                        // TODO b/270090188: remove this hack when biometrics fixes this issue.
                        // onAuthenticationFailed is called after onAuthenticationError
                        // for lockout error is received
                        mLogger.d("onAuthenticationFailed called after face has been locked out");
                        return;
                    }
                    handleFaceAuthFailed();
                }