[DO NOT MERGE] Move AuthSession usage to after null check am: ee88f23c61 am: 260a0e56a3

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

Change-Id: I35d5a08e007af89c168a87b9d3da6a62dc677742
This commit is contained in:
Kevin Chyn
2020-06-27 03:50:35 +00:00
committed by Automerger Merge Worker

View File

@@ -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;
}