Do not finish early if caller is SUW
Fixes: 151576034 Test: Wipe device, go past fingerprint enrollment in SUW, press back button. SUW should not get stuck Change-Id: I9021946dd169acfa205e6bacc4c4581242452983
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user