From 8a8d6c51b9916648c2109d87c2746bb05399bff6 Mon Sep 17 00:00:00 2001 From: Rubin Xu Date: Thu, 9 Dec 2021 17:54:25 +0000 Subject: [PATCH] Update work challenge to align with material next Re-land I6cca39d447e37310c287d1a0eb0468565e9fcd37 after it was reverted due to CTS failure. The original commit made changes to existing styles where are shared by other layouts hence causing issues. Fix by creating new styles instead. Also explicitly set the orientation in the password view's RelativeLayout, which isn't needed according to documentation but helps fixing the UI layout issue for some reason. Update the briefcase icon to be solid fill. Bug: 191948779 Test: android.server.biometrics.BiometricActivityTests Change-Id: I185ac28aff4478a4d251c2e5145e5f360131d274 --- .../res/drawable/auth_dialog_enterprise.xml | 2 +- .../layout/auth_credential_password_view.xml | 110 ++++++++------- .../layout/auth_credential_pattern_view.xml | 125 +++++++++--------- packages/SystemUI/res/values/styles.xml | 49 ++++++- 4 files changed, 171 insertions(+), 115 deletions(-) diff --git a/packages/SystemUI/res/drawable/auth_dialog_enterprise.xml b/packages/SystemUI/res/drawable/auth_dialog_enterprise.xml index c547c52a4077e..ec9465b20d619 100644 --- a/packages/SystemUI/res/drawable/auth_dialog_enterprise.xml +++ b/packages/SystemUI/res/drawable/auth_dialog_enterprise.xml @@ -20,6 +20,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0"> \ No newline at end of file diff --git a/packages/SystemUI/res/layout/auth_credential_password_view.xml b/packages/SystemUI/res/layout/auth_credential_password_view.xml index 1e0ce0026d8ee..0ff1db2ef694c 100644 --- a/packages/SystemUI/res/layout/auth_credential_password_view.xml +++ b/packages/SystemUI/res/layout/auth_credential_password_view.xml @@ -18,64 +18,72 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" - android:orientation="vertical" - android:gravity="center_horizontal" - android:elevation="@dimen/biometric_dialog_elevation"> + android:elevation="@dimen/biometric_dialog_elevation" + android:orientation="vertical"> - - - - - + android:layout_height="match_parent" + android:orientation="vertical"> - + - + - + - + - + - + + + + + + + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/layout/auth_credential_pattern_view.xml b/packages/SystemUI/res/layout/auth_credential_pattern_view.xml index 4939ea2c99ee3..dada9813c3205 100644 --- a/packages/SystemUI/res/layout/auth_credential_pattern_view.xml +++ b/packages/SystemUI/res/layout/auth_credential_pattern_view.xml @@ -22,76 +22,81 @@ android:gravity="center_horizontal" android:elevation="@dimen/biometric_dialog_elevation"> - - - - - + android:layout_height="match_parent" + android:orientation="vertical"> - + - + - + - + - + + - - - - - + android:layout_below="@id/auth_credential_header" + android:gravity="center" + android:orientation="vertical" + android:paddingBottom="16dp" + android:paddingTop="60dp"> - + - + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml index 9358349297831..6862e07128110 100644 --- a/packages/SystemUI/res/values/styles.xml +++ b/packages/SystemUI/res/values/styles.xml @@ -236,6 +236,41 @@ ?android:attr/colorError + + + + + + + + + + + +