Merge "Update settings together with frameworks/base"
This commit is contained in:
@@ -241,7 +241,7 @@ public class BiometricEnrollActivity extends InstrumentedActivity {
|
||||
final boolean maxFacesEnrolled = faceManager.getEnrolledFaces(mUserId).size()
|
||||
>= faceProperties.get(0).maxTemplatesAllowed;
|
||||
final boolean maxFingerprintsEnrolled = fingerprintManager.getEnrolledFingerprints(mUserId)
|
||||
.size() >= fpProperties.get(0).maxTemplatesAllowed;
|
||||
.size() >= fpProperties.get(0).maxEnrollmentsPerUser;
|
||||
|
||||
if (maxFacesEnrolled) {
|
||||
mCheckboxFace.setEnabled(false);
|
||||
|
||||
@@ -129,7 +129,7 @@ public class FingerprintEnrollIntroduction extends BiometricEnrollIntroduction {
|
||||
final List<FingerprintSensorProperties> props =
|
||||
mFingerprintManager.getSensorProperties();
|
||||
// This will need to be updated for devices with multiple fingerprint sensors
|
||||
final int max = props.get(0).maxTemplatesAllowed;
|
||||
final int max = props.get(0).maxEnrollmentsPerUser;
|
||||
final int numEnrolledFingerprints =
|
||||
mFingerprintManager.getEnrolledFingerprints(mUserId).size();
|
||||
if (numEnrolledFingerprints >= max) {
|
||||
|
||||
Reference in New Issue
Block a user