From ccbb4cfc2c3884389aecbe7c096d796fee8d3fc2 Mon Sep 17 00:00:00 2001 From: Andrew Sapperstein Date: Thu, 6 Jul 2017 14:30:28 -0700 Subject: [PATCH] Use config_headlineFontFamily for password screens. These screens are used whenever setting or confirming the lockscreen PIN or password. Set them to a consistent textSize (24sp) and a consistent fontFamily. Would have set the fontFamily in the style, but unfortunately setInputType is called on the TextViews after inflation which blows away the fontFamily. Instead, we set it in code right after that call. Change-Id: I77c3f94e2b1ce6d1f19697394c5caa09aac423b0 Fixes: 62873478 Test: manual --- res/layout-land/confirm_lock_password.xml | 1 - res/layout/choose_lock_password.xml | 1 - res/layout/confirm_lock_password_base.xml | 1 - res/layout/confirm_lock_password_internal.xml | 1 - res/values/styles.xml | 1 + src/com/android/settings/password/ChooseLockPassword.java | 5 +++++ src/com/android/settings/password/ConfirmLockPassword.java | 5 +++++ 7 files changed, 11 insertions(+), 4 deletions(-) diff --git a/res/layout-land/confirm_lock_password.xml b/res/layout-land/confirm_lock_password.xml index 0cc9339aa2e..218192c21d7 100644 --- a/res/layout-land/confirm_lock_password.xml +++ b/res/layout-land/confirm_lock_password.xml @@ -76,7 +76,6 @@ android:inputType="textPassword" android:imeOptions="actionNext|flagNoFullscreen|flagForceAscii" android:gravity="center" - android:textSize="16sp" style="@style/TextAppearance.PasswordEntry"/> center true ?android:attr/textColorPrimary + 24sp