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

Commit 350ffad6 authored by Kevin Chyn's avatar Kevin Chyn Committed by Android (Google) Code Review
Browse files

Merge "[DO NOT MERGE] Move AuthSession usage to after null check" into rvc-dev

parents 0bea1417 ee88f23c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1630,15 +1630,15 @@ public class BiometricService extends SystemService {
    }

    private void handleOnSystemEvent(int event) {
        final boolean shouldReceive = mCurrentAuthSession.mBundle
                .getBoolean(BiometricPrompt.KEY_RECEIVE_SYSTEM_EVENTS, false);
        Slog.d(TAG, "onSystemEvent: " + event + ", shouldReceive: " + shouldReceive);

        if (mCurrentAuthSession == null) {
            Slog.e(TAG, "Auth session null");
            return;
        }

        final boolean shouldReceive = mCurrentAuthSession.mBundle
                .getBoolean(BiometricPrompt.KEY_RECEIVE_SYSTEM_EVENTS, false);
        Slog.d(TAG, "onSystemEvent: " + event + ", shouldReceive: " + shouldReceive);

        if (!shouldReceive) {
            return;
        }