From 4a2acd2e202c1e301c746f000c182442477259bf Mon Sep 17 00:00:00 2001 From: Arc Wang Date: Wed, 19 May 2021 16:57:21 +0800 Subject: [PATCH] Fix UnsupportedOperationException in Display Settings Remove android:textColorHint from Theme.Settings to fix the regression. This is a quick fix, each EditText should set its hintTextColor attribute before there is a fix to apply the attribute globally in Settings APP. Bug: 188405076 Test: manually launch 'Font size' and 'Display size'. Change-Id: If3313be47e0c3e8ce9d41a6e87cdf2e7067ce54b --- AndroidManifest.xml | 3 ++- res/values/styles.xml | 1 + res/values/themes.xml | 5 ++++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 61c0c4ea2db..a2bd129d1ee 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -677,7 +677,8 @@ + android:exported="false" + android:theme="@style/Theme.LocalePickerWithRegionActivity"> 4dip viewStart @android:style/TextAppearance.DeviceDefault.Medium + ?android:attr/textColorSecondary @dimen/min_tap_target_size diff --git a/res/values/themes.xml b/res/values/themes.xml index 555a0454a66..9681b030bcc 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -32,7 +32,6 @@ @android:color/transparent @style/PickerDialogTheme.Settings @style/HorizontalProgressBarStyle - ?android:attr/textColorSecondary @style/FingerprintLayoutTheme @style/FaceLayoutTheme @@ -93,6 +92,10 @@ false + +