Merge "Support "less secure" info row on face enroll intro" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6368379a25
@@ -107,6 +107,29 @@
|
|||||||
style="@style/BiometricEnrollIntroMessage" />
|
style="@style/BiometricEnrollIntroMessage" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/info_row_less_secure"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/icon_less_secure"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@drawable/ic_info_outline_24dp"/>
|
||||||
|
<Space
|
||||||
|
android:layout_width="16dp"
|
||||||
|
android:layout_height="wrap_content"/>
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/info_message_less_secure"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
style="@style/BiometricEnrollIntroMessage"
|
||||||
|
android:text="@string/security_settings_face_enroll_introduction_info_less_secure" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/info_row_require_eyes"
|
android:id="@+id/info_row_require_eyes"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@@ -269,6 +269,9 @@
|
|||||||
<!-- ComponentName to launch a vendor-specific enrollment activity if available -->
|
<!-- ComponentName to launch a vendor-specific enrollment activity if available -->
|
||||||
<string name="config_face_enroll" translatable="false"></string>
|
<string name="config_face_enroll" translatable="false"></string>
|
||||||
|
|
||||||
|
<!-- Whether to show the "less secure" info section on the face enroll intro screen -->
|
||||||
|
<bool name="config_face_intro_show_less_secure">false</bool>
|
||||||
|
|
||||||
<!-- Whether to show the "require eyes" info section on the face enroll intro screen -->
|
<!-- Whether to show the "require eyes" info section on the face enroll intro screen -->
|
||||||
<bool name="config_face_intro_show_require_eyes">true</bool>
|
<bool name="config_face_intro_show_require_eyes">true</bool>
|
||||||
|
|
||||||
|
@@ -793,6 +793,8 @@
|
|||||||
<string name="security_settings_face_enroll_introduction_info_looking"></string>
|
<string name="security_settings_face_enroll_introduction_info_looking"></string>
|
||||||
<!-- Message on the face enrollment introduction page that provides information about what could cause the phone to unlock when asking for parental consent. [CHAR LIMIT=NONE] -->
|
<!-- Message on the face enrollment introduction page that provides information about what could cause the phone to unlock when asking for parental consent. [CHAR LIMIT=NONE] -->
|
||||||
<string name="security_settings_face_enroll_introduction_info_consent_looking"></string>
|
<string name="security_settings_face_enroll_introduction_info_consent_looking"></string>
|
||||||
|
<!-- Message on the face enrollment introduction page that provides information about the relative security of face for unlocking the phone. [CHAR LIMIT=NONE] -->
|
||||||
|
<string name="security_settings_face_enroll_introduction_info_less_secure"></string>
|
||||||
<!-- Message on the face enrollment introduction page that provides information about how to require eyes to be open for Face Unlock. [CHAR LIMIT=NONE] -->
|
<!-- Message on the face enrollment introduction page that provides information about how to require eyes to be open for Face Unlock. [CHAR LIMIT=NONE] -->
|
||||||
<string name="security_settings_face_enroll_introduction_info_gaze"></string>
|
<string name="security_settings_face_enroll_introduction_info_gaze"></string>
|
||||||
<!-- Message on the face enrollment introduction page that provides information about how to require eyes to be open for Face Unlock when asking for parental consent. [CHAR LIMIT=NONE] -->
|
<!-- Message on the face enrollment introduction page that provides information about how to require eyes to be open for Face Unlock when asking for parental consent. [CHAR LIMIT=NONE] -->
|
||||||
|
@@ -112,6 +112,14 @@ public class FaceEnrollIntroduction extends BiometricEnrollIntroduction {
|
|||||||
howMessage.setText(getHowMessage());
|
howMessage.setText(getHowMessage());
|
||||||
inControlMessage.setText(getInControlMessage());
|
inControlMessage.setText(getInControlMessage());
|
||||||
|
|
||||||
|
// Set up and show the "less secure" info section if necessary.
|
||||||
|
if (getResources().getBoolean(R.bool.config_face_intro_show_less_secure)) {
|
||||||
|
final LinearLayout infoRowLessSecure = findViewById(R.id.info_row_less_secure);
|
||||||
|
final ImageView iconLessSecure = findViewById(R.id.icon_less_secure);
|
||||||
|
infoRowLessSecure.setVisibility(View.VISIBLE);
|
||||||
|
iconLessSecure.getBackground().setColorFilter(getIconColorFilter());
|
||||||
|
}
|
||||||
|
|
||||||
// Set up and show the "require eyes" info section if necessary.
|
// Set up and show the "require eyes" info section if necessary.
|
||||||
if (getResources().getBoolean(R.bool.config_face_intro_show_require_eyes)) {
|
if (getResources().getBoolean(R.bool.config_face_intro_show_require_eyes)) {
|
||||||
final LinearLayout infoRowRequireEyes = findViewById(R.id.info_row_require_eyes);
|
final LinearLayout infoRowRequireEyes = findViewById(R.id.info_row_require_eyes);
|
||||||
|
Reference in New Issue
Block a user