Merge "Do not finish early if caller is SUW" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-03-16 18:56:54 +00:00
committed by Android (Google) Code Review

View File

@@ -68,11 +68,13 @@ public class BiometricEnrollActivity extends InstrumentedActivity {
final int result = bm.canAuthenticate(authenticators);
if (result == BiometricManager.BIOMETRIC_SUCCESS
|| result == BiometricManager.BIOMETRIC_ERROR_NO_HARDWARE) {
Log.e(TAG, "Unexpected result: " + result);
finish();
return;
if (!WizardManagerHelper.isAnySetupWizard(getIntent())) {
if (result == BiometricManager.BIOMETRIC_SUCCESS
|| result == BiometricManager.BIOMETRIC_ERROR_NO_HARDWARE) {
Log.e(TAG, "Unexpected result: " + result);
finish();
return;
}
}
if (authenticators == BiometricManager.Authenticators.DEVICE_CREDENTIAL) {