Add string ids to the result bundle for parental consent.
Bug: 198491515 Test: N/A (builds) Change-Id: Id120f5f7a7e923f9d3ce7dd38d3e5214296ca219
This commit is contained in:
@@ -48,6 +48,10 @@ public class ParentalConsentHelper {
|
||||
private static final String KEY_FINGERPRINT_CONSENT = "fingerprint";
|
||||
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 mRequireFingerprint;
|
||||
|
||||
@@ -152,9 +156,14 @@ public class ParentalConsentHelper {
|
||||
public Bundle getConsentResult() {
|
||||
final Bundle result = new Bundle();
|
||||
result.putBoolean(KEY_FACE_CONSENT, mConsentFace != null ? mConsentFace : false);
|
||||
result.putIntArray(KEY_FACE_CONSENT_STRINGS,
|
||||
FaceEnrollParentalConsent.CONSENT_STRING_RESOURCES);
|
||||
result.putBoolean(KEY_FINGERPRINT_CONSENT,
|
||||
mConsentFingerprint != null ? mConsentFingerprint : false);
|
||||
result.putIntArray(KEY_FINGERPRINT_CONSENT_STRINGS,
|
||||
FingerprintEnrollParentalConsent.CONSENT_STRING_RESOURCES);
|
||||
result.putBoolean(KEY_IRIS_CONSENT, false);
|
||||
result.putIntArray(KEY_IRIS_CONSENT_STRINGS, new int[0]);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user