From ce03593da0dc177a16fae19cb0a903641c8cd9d2 Mon Sep 17 00:00:00 2001 From: Curtis Belmonte Date: Thu, 26 Mar 2020 13:43:25 -0700 Subject: [PATCH] Make BiometricPrompt credential UI closer to Settings Adjusts the fonts, sizes, and positions of the AuthCredentialView UI invoked by BiometricPrompt to better match the UI for setting or confirming a PIN/pattern/password in Settings. Test: Manually, using the BiometricPrompt demo and TestDPC apps Fixes: 152053691 Change-Id: I0d0316b2ac5bde696706e916a29021481e824509 --- .../auth_credential_pattern_view.xml | 11 ++----- .../res/layout/auth_biometric_contents.xml | 16 ++-------- .../layout/auth_credential_password_view.xml | 21 +++++-------- .../layout/auth_credential_pattern_view.xml | 11 ++----- packages/SystemUI/res/values/styles.xml | 31 +++++++++++++------ 5 files changed, 35 insertions(+), 55 deletions(-) diff --git a/packages/SystemUI/res/layout-land/auth_credential_pattern_view.xml b/packages/SystemUI/res/layout-land/auth_credential_pattern_view.xml index e791c8aea97e8..19a85fec13973 100644 --- a/packages/SystemUI/res/layout-land/auth_credential_pattern_view.xml +++ b/packages/SystemUI/res/layout-land/auth_credential_pattern_view.xml @@ -48,11 +48,7 @@ android:id="@+id/subtitle" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginHorizontal="24dp" - android:layout_marginTop="8dp" - android:textSize="16sp" - android:gravity="center" - android:textColor="?android:attr/textColorPrimary"/> + style="@style/TextAppearance.AuthCredential.Subtitle"/> + style="@style/TextAppearance.AuthCredential.Error"/> + style="@style/TextAppearance.AuthCredential.Title"/> + style="@style/TextAppearance.AuthCredential.Subtitle"/> + style="@style/TextAppearance.AuthCredential.Description"/> + style="@style/TextAppearance.AuthCredential.Subtitle"/> - - + + + style="@style/TextAppearance.AuthCredential.Subtitle"/> + style="@style/TextAppearance.AuthCredential.Error"/> diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml index 1233d4dc73e71..5e6af8dac4553 100644 --- a/packages/SystemUI/res/values/styles.xml +++ b/packages/SystemUI/res/values/styles.xml @@ -250,28 +250,39 @@ - + + + +