4/n: Add basic enrollment for Face
Bug: 110589286 Test: fingerprint enrolling still works Test: enrollment flow with and without a pin set up still works properly Test: enrollment continues when configuration changes, stops otherwise Change-Id: I39f76c7f1a16e9533cef573f87cf4b81cb20cb18
This commit is contained in:
@@ -102,9 +102,11 @@ public abstract class BiometricEnrollIntroduction extends BiometricEnrollBase
|
||||
protected abstract String getExtraKeyForBiometric();
|
||||
|
||||
/**
|
||||
* @return the intent for proceeding to the next step of enrollment
|
||||
* @return the intent for proceeding to the next step of enrollment. For Fingerprint, this
|
||||
* should lead to the "Find Sensor" activity. For Face, this should lead to the "Enrolling"
|
||||
* activity.
|
||||
*/
|
||||
protected abstract Intent getFindSensorIntent();
|
||||
protected abstract Intent getEnrollingIntent();
|
||||
|
||||
/**
|
||||
* @param span
|
||||
@@ -179,7 +181,7 @@ public abstract class BiometricEnrollIntroduction extends BiometricEnrollBase
|
||||
}
|
||||
|
||||
private void launchFindSensor(byte[] token) {
|
||||
Intent intent = getFindSensorIntent();
|
||||
Intent intent = getEnrollingIntent();
|
||||
if (token != null) {
|
||||
intent.putExtra(ChooseLockSettingsHelper.EXTRA_KEY_CHALLENGE_TOKEN, token);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user