Merge "Do not finish early if caller is SUW" into rvc-dev am: b2c35f7fcc am: f4ca410ad7 am: 28153ffaa7

Change-Id: I6235fcf297b45c050b270655271d2427d2a483cc
This commit is contained in:
Automerger Merge Worker
2020-03-16 19:38:49 +00:00

View File

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