Merge "Add string ids to the result bundle for parental consent." into sc-qpr1-dev am: 63786513fc
am: 3452769f1e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15759863 Change-Id: I4e798fbebf3266b970fcb3d94c2390833541ba9d
This commit is contained in:
@@ -726,6 +726,7 @@
|
|||||||
<string name="security_dashboard_summary">Screen lock, Find My Device, app security</string>
|
<string name="security_dashboard_summary">Screen lock, Find My Device, app security</string>
|
||||||
|
|
||||||
<!-- Face enrollment and settings --><skip />
|
<!-- Face enrollment and settings --><skip />
|
||||||
|
<!-- Note: Update FaceEnrollParentalConsent.CONSENT_STRING_RESOURCES when any _consent_ strings are added or removed. -->
|
||||||
<!-- Message shown in summary field when face unlock is set up. [CHAR LIMIT=40] -->
|
<!-- Message shown in summary field when face unlock is set up. [CHAR LIMIT=40] -->
|
||||||
<string name="security_settings_face_preference_summary">Face added</string>
|
<string name="security_settings_face_preference_summary">Face added</string>
|
||||||
<!-- Message shown in summary field when Face Unlock is not set up. [CHAR LIMIT=54] -->
|
<!-- Message shown in summary field when Face Unlock is not set up. [CHAR LIMIT=54] -->
|
||||||
@@ -879,6 +880,7 @@
|
|||||||
<string name="security_settings_face_settings_context_subtitle">Use Face Unlock to unlock your phone</string>
|
<string name="security_settings_face_settings_context_subtitle">Use Face Unlock to unlock your phone</string>
|
||||||
|
|
||||||
<!-- Fingerprint enrollment and settings --><skip />
|
<!-- Fingerprint enrollment and settings --><skip />
|
||||||
|
<!-- Note: Update FingerprintEnrollParentalConsent.CONSENT_STRING_RESOURCES when any _consent_ strings are added or removed. -->
|
||||||
<!-- Title shown for menu item that launches fingerprint settings or enrollment [CHAR LIMIT=22] -->
|
<!-- Title shown for menu item that launches fingerprint settings or enrollment [CHAR LIMIT=22] -->
|
||||||
<string name="security_settings_fingerprint_preference_title">Fingerprint</string>
|
<string name="security_settings_fingerprint_preference_title">Fingerprint</string>
|
||||||
<!-- Fingerprint managment category title - configuration options for managing enrolled fingerprints [CHAR LIMIT=22] -->
|
<!-- Fingerprint managment category title - configuration options for managing enrolled fingerprints [CHAR LIMIT=22] -->
|
||||||
|
@@ -48,6 +48,10 @@ public class ParentalConsentHelper {
|
|||||||
private static final String KEY_FINGERPRINT_CONSENT = "fingerprint";
|
private static final String KEY_FINGERPRINT_CONSENT = "fingerprint";
|
||||||
private static final String KEY_IRIS_CONSENT = "iris";
|
private static final String KEY_IRIS_CONSENT = "iris";
|
||||||
|
|
||||||
|
private static final String KEY_FACE_CONSENT_STRINGS = "face_strings";
|
||||||
|
private static final String KEY_FINGERPRINT_CONSENT_STRINGS = "fingerprint_strings";
|
||||||
|
private static final String KEY_IRIS_CONSENT_STRINGS = "iris_strings";
|
||||||
|
|
||||||
private final boolean mRequireFace;
|
private final boolean mRequireFace;
|
||||||
private final boolean mRequireFingerprint;
|
private final boolean mRequireFingerprint;
|
||||||
|
|
||||||
@@ -152,9 +156,14 @@ public class ParentalConsentHelper {
|
|||||||
public Bundle getConsentResult() {
|
public Bundle getConsentResult() {
|
||||||
final Bundle result = new Bundle();
|
final Bundle result = new Bundle();
|
||||||
result.putBoolean(KEY_FACE_CONSENT, mConsentFace != null ? mConsentFace : false);
|
result.putBoolean(KEY_FACE_CONSENT, mConsentFace != null ? mConsentFace : false);
|
||||||
|
result.putIntArray(KEY_FACE_CONSENT_STRINGS,
|
||||||
|
FaceEnrollParentalConsent.CONSENT_STRING_RESOURCES);
|
||||||
result.putBoolean(KEY_FINGERPRINT_CONSENT,
|
result.putBoolean(KEY_FINGERPRINT_CONSENT,
|
||||||
mConsentFingerprint != null ? mConsentFingerprint : false);
|
mConsentFingerprint != null ? mConsentFingerprint : false);
|
||||||
|
result.putIntArray(KEY_FINGERPRINT_CONSENT_STRINGS,
|
||||||
|
FingerprintEnrollParentalConsent.CONSENT_STRING_RESOURCES);
|
||||||
result.putBoolean(KEY_IRIS_CONSENT, false);
|
result.putBoolean(KEY_IRIS_CONSENT, false);
|
||||||
|
result.putIntArray(KEY_IRIS_CONSENT_STRINGS, new int[0]);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -33,6 +33,21 @@ import com.android.settings.R;
|
|||||||
*/
|
*/
|
||||||
public class FaceEnrollParentalConsent extends FaceEnrollIntroduction {
|
public class FaceEnrollParentalConsent extends FaceEnrollIntroduction {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List of string resources to log when recording the result of this activity in gms.
|
||||||
|
* This must be updated when any strings are added/removed.
|
||||||
|
*/
|
||||||
|
public static final int[] CONSENT_STRING_RESOURCES = new int[] {
|
||||||
|
R.string.security_settings_face_enroll_consent_introduction_title,
|
||||||
|
R.string.security_settings_face_enroll_introduction_consent_message,
|
||||||
|
R.string.security_settings_face_enroll_introduction_info_consent_glasses,
|
||||||
|
R.string.security_settings_face_enroll_introduction_info_consent_looking,
|
||||||
|
R.string.security_settings_face_enroll_introduction_info_consent_gaze,
|
||||||
|
R.string.security_settings_face_enroll_introduction_how_consent_message,
|
||||||
|
R.string.security_settings_face_enroll_introduction_control_consent_title,
|
||||||
|
R.string.security_settings_face_enroll_introduction_control_consent_message
|
||||||
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
@@ -33,6 +33,20 @@ import com.android.settings.R;
|
|||||||
*/
|
*/
|
||||||
public class FingerprintEnrollParentalConsent extends FingerprintEnrollIntroduction {
|
public class FingerprintEnrollParentalConsent extends FingerprintEnrollIntroduction {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List of string resources to log when recording the result of this activity in gms.
|
||||||
|
* This must be updated when any strings are added/removed.
|
||||||
|
*/
|
||||||
|
public static final int[] CONSENT_STRING_RESOURCES = new int[] {
|
||||||
|
R.string.security_settings_fingerprint_enroll_consent_introduction_title,
|
||||||
|
R.string.security_settings_fingerprint_enroll_introduction_consent_message,
|
||||||
|
R.string.security_settings_fingerprint_enroll_introduction_footer_title_consent_1,
|
||||||
|
R.string.security_settings_fingerprint_v2_enroll_introduction_footer_message_consent_2,
|
||||||
|
R.string.security_settings_fingerprint_v2_enroll_introduction_footer_message_consent_3,
|
||||||
|
R.string.security_settings_fingerprint_v2_enroll_introduction_footer_message_consent_4,
|
||||||
|
R.string.security_settings_fingerprint_v2_enroll_introduction_footer_message_consent_5
|
||||||
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Reference in New Issue
Block a user