Fix multiple biometrics enrollment flow

Suppose both face auth and fingerprint auth exist in a device, the setup
flow will skip fingerprint enrollment when a user skips to register
face data on the face enrollment education page. Updated the skip button
method and make the flow move on to fingerprint enrollment if a use
doesn't want to register face data.

Fix: 186084024
Test: manual verified
1) Reset device and start from SUW
2) Press skip button on the face unlock education page
3) The next flow should be fingerprint enrollment intro page

Change-Id: I037ae68f39f5fdbf62ea95b998621c7f7df31b43
This commit is contained in:
Mill Chen
2021-07-01 14:17:52 +08:00
parent c8abbc4d8d
commit e24255fe7e

View File

@@ -215,8 +215,10 @@ public class FaceEnrollEducation extends BiometricEnrollBase {
}
protected void onSkipButtonClick(View view) {
setResult(RESULT_SKIP);
finish();
if (!BiometricUtils.tryStartingNextBiometricEnroll(this, ENROLL_NEXT_BIOMETRIC_REQUEST)) {
setResult(RESULT_SKIP);
finish();
}
}
@Override