Modified Fp -> Face setup flow
Test: Skip FP, Enroll Face, hit back button, observe that you will go back to Fingerprint enrollment. Test: Verify that after completing a biometric enroll we no longer show the introduction activity with a "Done" button. Fixes: 229813512 Change-Id: Ie0d7ce5d5cef084b3614afce10e05dc72c86b492
This commit is contained in:
@@ -176,7 +176,18 @@ public class FaceEnrollIntroduction extends BiometricEnrollIntroduction {
|
||||
|| requestCode == ENROLL_NEXT_BIOMETRIC_REQUEST;
|
||||
final boolean isResultSkipOrFinished = resultCode == RESULT_SKIP
|
||||
|| resultCode == SetupSkipDialog.RESULT_SKIP || resultCode == RESULT_FINISHED;
|
||||
if (isEnrollRequest && isResultSkipOrFinished) {
|
||||
boolean hasEnrolledFace = false;
|
||||
if (data != null) {
|
||||
hasEnrolledFace = data.getBooleanExtra(EXTRA_FINISHED_ENROLL_FACE, false);
|
||||
}
|
||||
|
||||
if (resultCode == RESULT_CANCELED && hasEnrolledFace) {
|
||||
setResult(resultCode, data);
|
||||
finish();
|
||||
return;
|
||||
}
|
||||
|
||||
if (isEnrollRequest && isResultSkipOrFinished || hasEnrolledFace) {
|
||||
data = setSkipPendingEnroll(data);
|
||||
}
|
||||
super.onActivityResult(requestCode, resultCode, data);
|
||||
|
||||
Reference in New Issue
Block a user