Merge "Do not finish early if caller is SUW" into rvc-dev am: b2c35f7fcc am: f4ca410ad7 am: 19b27604b6 am: 5df00d8c17

Change-Id: I18691f8b67c7b2f04edd1bf247fba35f7c13b9cc
This commit is contained in:
Automerger Merge Worker
2020-03-16 20:17:44 +00:00

View File

@@ -68,12 +68,14 @@ public class BiometricEnrollActivity extends InstrumentedActivity {
final int result = bm.canAuthenticate(authenticators); final int result = bm.canAuthenticate(authenticators);
if (!WizardManagerHelper.isAnySetupWizard(getIntent())) {
if (result == BiometricManager.BIOMETRIC_SUCCESS if (result == BiometricManager.BIOMETRIC_SUCCESS
|| result == BiometricManager.BIOMETRIC_ERROR_NO_HARDWARE) { || result == BiometricManager.BIOMETRIC_ERROR_NO_HARDWARE) {
Log.e(TAG, "Unexpected result: " + result); Log.e(TAG, "Unexpected result: " + result);
finish(); finish();
return; return;
} }
}
if (authenticators == BiometricManager.Authenticators.DEVICE_CREDENTIAL) { if (authenticators == BiometricManager.Authenticators.DEVICE_CREDENTIAL) {
// If only device credential was specified, ask the user to only set that up. // If only device credential was specified, ask the user to only set that up.