Support "less secure" info row on face enroll intro
Adds an info row that can be configured to show on the face enroll introduction screen, indicating the relative security of face compared to other authentication methods (e.g. pattern or PIN). Test: Manual Bug: 196254139 Change-Id: I956083887945ac97d15722b23a14ac458568dd9e
This commit is contained in:
@@ -112,6 +112,14 @@ public class FaceEnrollIntroduction extends BiometricEnrollIntroduction {
|
||||
howMessage.setText(getHowMessage());
|
||||
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.
|
||||
if (getResources().getBoolean(R.bool.config_face_intro_show_require_eyes)) {
|
||||
final LinearLayout infoRowRequireEyes = findViewById(R.id.info_row_require_eyes);
|
||||
|
Reference in New Issue
Block a user