Merge "Fixed FaceEnrollIntro crash." into main

This commit is contained in:
Treehugger Robot
2024-05-22 03:21:04 +00:00
committed by Android (Google) Code Review

View File

@@ -170,6 +170,8 @@ public class FaceEnrollIntroduction extends BiometricEnrollIntroduction {
infoMessageRequireEyes.setText(getInfoMessageRequireEyes()); infoMessageRequireEyes.setText(getInfoMessageRequireEyes());
} }
if (mFaceManager != null) {
mFaceManager.addAuthenticatorsRegisteredCallback( mFaceManager.addAuthenticatorsRegisteredCallback(
new IFaceAuthenticatorsRegisteredCallback.Stub() { new IFaceAuthenticatorsRegisteredCallback.Stub() {
@Override @Override
@@ -186,6 +188,7 @@ public class FaceEnrollIntroduction extends BiometricEnrollIntroduction {
onFaceStrengthChanged(); onFaceStrengthChanged();
} }
}); });
}
// This path is an entry point for SetNewPasswordController, e.g. // This path is an entry point for SetNewPasswordController, e.g.
// adb shell am start -a android.app.action.SET_NEW_PASSWORD // adb shell am start -a android.app.action.SET_NEW_PASSWORD