From 937ff332f330718282cdd79273777c4ad8f04f49 Mon Sep 17 00:00:00 2001 From: Curtis Belmonte Date: Fri, 21 May 2021 15:50:21 -0700 Subject: [PATCH] Update face/fingerprint consent screen UIs Makes the following UI changes to the consent screens for face and fingerprint enrollment: - Sets description text in XML rather than in Java - Highlight both primary and secondary buttons - Use extracted highlight color for all icons Test: Manually tested SUW flow Bug: 188922185 Bug: 187458628 Bug: 183710943 Change-Id: I39d9b990dcbb82f443515a2175766dc51ca1180c --- res/layout/face_enroll_introduction.xml | 6 ++++- .../fingerprint_enroll_introduction.xml | 9 +++++++- .../BiometricEnrollIntroduction.java | 18 +++++++++++++++ .../face/FaceEnrollIntroduction.java | 17 +++++++++----- .../FingerprintEnrollIntroduction.java | 22 ++++++++++++++----- 5 files changed, 58 insertions(+), 14 deletions(-) diff --git a/res/layout/face_enroll_introduction.xml b/res/layout/face_enroll_introduction.xml index 22dba83734a..7783d723d33 100644 --- a/res/layout/face_enroll_introduction.xml +++ b/res/layout/face_enroll_introduction.xml @@ -21,7 +21,8 @@ style="?attr/face_layout_theme" android:id="@+id/setup_wizard_layout" android:layout_width="match_parent" - android:layout_height="match_parent"> + android:layout_height="match_parent" + app:sudDescriptionText="@string/security_settings_face_enroll_introduction_message"> @@ -99,6 +101,7 @@ android:paddingTop="24dp"> @@ -124,6 +127,7 @@ android:paddingTop="24dp"> diff --git a/res/layout/fingerprint_enroll_introduction.xml b/res/layout/fingerprint_enroll_introduction.xml index f556f274114..8e92bf494a0 100644 --- a/res/layout/fingerprint_enroll_introduction.xml +++ b/res/layout/fingerprint_enroll_introduction.xml @@ -17,10 +17,12 @@ + android:layout_height="match_parent" + app:sudDescriptionText="@string/security_settings_fingerprint_enroll_introduction_message">