Fixed unicorn multi-enrollment flow.
Test: Verified that Unicorn SUW flows can now enroll a face. Test: Verified normal SUW flow works as expected. Fixes: 237088482 Fixes: 234663447 Change-Id: I9c4100f61b5e7d40fc9ed67c6918ec7bf31fc30a
This commit is contained in:
@@ -240,7 +240,6 @@ public class BiometricUtils {
|
||||
return activity.getIntent().hasExtra(MultiBiometricEnrollHelper.EXTRA_ENROLL_AFTER_FACE);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Used for checking if a multi-biometric enrollment flowstarts with Fingerprint
|
||||
* and ends with Face.
|
||||
@@ -254,6 +253,18 @@ public class BiometricUtils {
|
||||
MultiBiometricEnrollHelper.EXTRA_ENROLL_AFTER_FINGERPRINT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Used to check if the activity is a multi biometric flow activity.
|
||||
*
|
||||
* @param activity Activity to check
|
||||
* @return True if the activity is going through a multi-biometric enrollment flow, that starts
|
||||
* with Fingerprint.
|
||||
*/
|
||||
public static boolean isAnyMultiBiometricFlow(@NonNull Activity activity) {
|
||||
return isMultiBiometricFaceEnrollmentFlow(activity)
|
||||
|| isMultiBiometricFingerprintEnrollmentFlow(activity);
|
||||
}
|
||||
|
||||
public static void copyMultiBiometricExtras(@NonNull Intent fromIntent,
|
||||
@NonNull Intent toIntent) {
|
||||
PendingIntent pendingIntent = (PendingIntent) fromIntent.getExtra(
|
||||
|
Reference in New Issue
Block a user