Add new enum for parental consent UI.
Bug: 188847063 Test: manual Change-Id: I7b101f0d7cda415695ecdb7963a0e514c875b95c
This commit is contained in:
@@ -70,7 +70,6 @@ public class BiometricHandoffActivity extends BiometricEnrollBase {
|
||||
|
||||
@Override
|
||||
public int getMetricsCategory() {
|
||||
// TODO (b/188847063): add new category
|
||||
return SettingsEnums.BIOMETRIC_ENROLL_ACTIVITY;
|
||||
return SettingsEnums.BIOMETRIC_CONSENT_PARENT_TO_CHILD;
|
||||
}
|
||||
}
|
||||
|
@@ -18,6 +18,7 @@ package com.android.settings.biometrics.face;
|
||||
|
||||
import static android.hardware.biometrics.BiometricAuthenticator.TYPE_FACE;
|
||||
|
||||
import android.app.settings.SettingsEnums;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
@@ -29,8 +30,6 @@ import com.android.settings.R;
|
||||
|
||||
/**
|
||||
* Displays parental consent information for face authentication.
|
||||
*
|
||||
* TODO (b/188847063): add new metrics category
|
||||
*/
|
||||
public class FaceEnrollParentalConsent extends FaceEnrollIntroduction {
|
||||
|
||||
@@ -103,4 +102,9 @@ public class FaceEnrollParentalConsent extends FaceEnrollIntroduction {
|
||||
protected int getHeaderResDefault() {
|
||||
return R.string.security_settings_face_enroll_consent_introduction_title;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetricsCategory() {
|
||||
return SettingsEnums.FACE_PARENTAL_CONSENT;
|
||||
}
|
||||
}
|
||||
|
@@ -18,6 +18,7 @@ package com.android.settings.biometrics.fingerprint;
|
||||
|
||||
import static android.hardware.biometrics.BiometricAuthenticator.TYPE_FINGERPRINT;
|
||||
|
||||
import android.app.settings.SettingsEnums;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
@@ -29,8 +30,6 @@ import com.android.settings.R;
|
||||
|
||||
/**
|
||||
* Displays parental consent information for fingerprint authentication.
|
||||
*
|
||||
* TODO (b/188847063): add new metrics category
|
||||
*/
|
||||
public class FingerprintEnrollParentalConsent extends FingerprintEnrollIntroduction {
|
||||
|
||||
@@ -97,4 +96,9 @@ public class FingerprintEnrollParentalConsent extends FingerprintEnrollIntroduct
|
||||
protected int getHeaderResDefault() {
|
||||
return R.string.security_settings_fingerprint_enroll_consent_introduction_title;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetricsCategory() {
|
||||
return SettingsEnums.FINGERPRINT_PARENTAL_CONSENT;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user