Merge "Avoid triggering BGE scaning multiple times" into main

This commit is contained in:
Vincent Wang
2025-02-14 02:17:21 -08:00
committed by Android (Google) Code Review

View File

@@ -1067,8 +1067,11 @@ public class FingerprintSettings extends SubSettings {
mRemovalSidecar.setListener(mRemovalListener); mRemovalSidecar.setListener(mRemovalListener);
} }
mCalibrator = FeatureFactory.getFeatureFactory().getFingerprintFeatureProvider() if (!mLaunchedConfirm && !mIsEnrolling) {
.getUdfpsEnrollCalibrator(getActivity().getApplicationContext(), null, null); mCalibrator = FeatureFactory.getFeatureFactory().getFingerprintFeatureProvider()
.getUdfpsEnrollCalibrator(getActivity().getApplicationContext(), null,
null);
}
} }
private void updatePreferences() { private void updatePreferences() {
@@ -1517,6 +1520,11 @@ public class FingerprintSettings extends SubSettings {
intent.putExtra(ChooseLockSettingsHelper.EXTRA_KEY_CHALLENGE_TOKEN, mToken); intent.putExtra(ChooseLockSettingsHelper.EXTRA_KEY_CHALLENGE_TOKEN, mToken);
intent.putExtra(BiometricEnrollBase.EXTRA_KEY_CHALLENGE, mChallenge); intent.putExtra(BiometricEnrollBase.EXTRA_KEY_CHALLENGE, mChallenge);
} }
if (mCalibrator != null) {
intent.putExtras(mCalibrator.getExtrasForNextIntent());
}
startActivityForResult(intent, AUTO_ADD_FIRST_FINGERPRINT_REQUEST); startActivityForResult(intent, AUTO_ADD_FIRST_FINGERPRINT_REQUEST);
} }