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

Commit 95b2dcd6 authored by Kevin Chyn's avatar Kevin Chyn Committed by Automerger Merge Worker
Browse files

[DO NOT MERGE] Move AuthSession usage to after null check am: ee88f23c am:...

[DO NOT MERGE] Move AuthSession usage to after null check am: ee88f23c am: 260a0e56 am: a38d61cc

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12013474

Change-Id: I325bc8cb0da7311f065cc1b49d4784024b8828ca
parents 144722d2 a38d61cc
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;
        }