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

Commit ffef714c authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Move null check

Bug: 111548033
Test: messages are received
Change-Id: I16d0c9eff4824c0c72e20cf06ce1a4eb5eeb5ba2
parent f445d59c
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -975,14 +975,11 @@ public class FaceManager implements BiometricAuthenticator, BiometricFaceConstan
            mAuthenticationCallback.onAuthenticationAcquired(acquireInfo);
        }
        final String msg = getAcquiredString(mContext, acquireInfo, vendorCode);
        if (msg == null) {
            return;
        }
        final int clientInfo = acquireInfo == FACE_ACQUIRED_VENDOR
                ? (vendorCode + FACE_ACQUIRED_VENDOR_BASE) : acquireInfo;
        if (mEnrollmentCallback != null) {
            mEnrollmentCallback.onEnrollmentHelp(clientInfo, msg);
        } else if (mAuthenticationCallback != null) {
        } else if (mAuthenticationCallback != null && msg != null) {
            mAuthenticationCallback.onAuthenticationHelp(clientInfo, msg);
        }
    }