Avoid triggering BGE scaning multiple times
BUG: b/391255128 Flag: EXEMPT bug fixing Test: Manual test and check BGE scanning behavior Change-Id: I7d8649360a09f8eb48b990f5ae33ee6cd1723445
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user