diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-06-15 23:19:52 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-06-15 23:19:52 +0000 |
commit | 69ca3141a9c30fde9dc6a862756dc8380f60427c (patch) | |
tree | 8fd898c65f99501bccc2bf5fe7a7a99908ca772a | |
parent | 9a7226f74058ef0ec7b8dc4fd439f6b0f51bf96c (diff) | |
parent | 06278b9e8c49e41b34e733307ff679a4467995d5 (diff) | |
download | DocumentsUI-android14-s2-release.tar.gz |
Snap for 10331563 from 06278b9e8c49e41b34e733307ff679a4467995d5 to udc-releaseandroid-vts-14.0_r4android-vts-14.0_r3android-vts-14.0_r2android-vts-14.0_r1android-security-14.0.0_r8android-security-14.0.0_r7android-security-14.0.0_r6android-security-14.0.0_r5android-security-14.0.0_r4android-security-14.0.0_r3android-security-14.0.0_r2android-security-14.0.0_r1android-platform-14.0.0_r7android-platform-14.0.0_r6android-platform-14.0.0_r5android-platform-14.0.0_r4android-platform-14.0.0_r3android-platform-14.0.0_r2android-platform-14.0.0_r1android-cts-14.0_r4android-cts-14.0_r3android-cts-14.0_r2android-cts-14.0_r1android-14.0.0_r28android-14.0.0_r2android-14.0.0_r15android-14.0.0_r14android-14.0.0_r13android-14.0.0_r1android14-tests-releaseandroid14-security-releaseandroid14-s2-releaseandroid14-s1-releaseandroid14-releaseandroid14-platform-release
Change-Id: I4dd5c479bc16c67723422f45e64ed2649e830b1e
-rw-r--r-- | res/values-night-v31/styles.xml | 6 | ||||
-rw-r--r-- | res/values-v31/styles.xml | 6 | ||||
-rw-r--r-- | res/values/styles.xml | 12 |
3 files changed, 17 insertions, 7 deletions
diff --git a/res/values-night-v31/styles.xml b/res/values-night-v31/styles.xml index 0cbb57b2a..0bbda8997 100644 --- a/res/values-night-v31/styles.xml +++ b/res/values-night-v31/styles.xml @@ -16,11 +16,11 @@ --> <resources> - <style name="ActionBarTheme" parent="@style/ThemeOverlay.AppCompat.ActionBar"> - <item name="colorControlNormal">?android:textColorSecondary</item> + <!-- + <style name="ActionBarTheme" parent="@style/ActionBarThemeCommon"> <item name="android:actionMenuTextColor">@*android:color/accent_device_default_dark</item> - <item name="android:textAllCaps">false</item> </style> + --> <style name="TabTextAppearance" parent="@android:style/TextAppearance.Material.Medium"> <item name="android:textSize">14sp</item> diff --git a/res/values-v31/styles.xml b/res/values-v31/styles.xml index ad2d98cdb..c82ff5814 100644 --- a/res/values-v31/styles.xml +++ b/res/values-v31/styles.xml @@ -22,13 +22,13 @@ <item name="android:textSize">12sp</item> </style> - <style name="ActionBarTheme" parent="@style/ThemeOverlay.AppCompat.ActionBar"> - <item name="colorControlNormal">?android:textColorSecondary</item> + <!-- + <style name="ActionBarTheme" parent="@style/ActionBarThemeCommon"> <item name="android:actionMenuTextColor"> @*android:color/accent_device_default_light </item> - <item name="android:textAllCaps">false</item> </style> + --> <style name="MaterialButton" parent="@style/Widget.MaterialComponents.Button.UnelevatedButton"> <item name="android:textAppearance">@style/MaterialButtonTextAppearance diff --git a/res/values/styles.xml b/res/values/styles.xml index b27f2ea55..1efd1d5d1 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -15,10 +15,20 @@ --> <resources xmlns:android="http://schemas.android.com/apk/res/android"> - <style name="ActionBarTheme" parent="@style/ThemeOverlay.AppCompat.ActionBar"> + <style name="ActionBarThemeCommon" parent="@style/ThemeOverlay.AppCompat.ActionBar"> <item name="colorControlNormal">?android:textColorSecondary</item> + <!-- Modern platform themes set actionMenuTextColor to textColorPrimary. For example, + see Theme.Material in frameworks/base/core/res/res/values/themes_material.xml. + However, if the platform theme does not set actionMenuTextColor we are going to + crash, so let's set it here. Additionally, most of our ActionBarTheme themes + override this --> + <item name="android:actionMenuTextColor">?android:textColorPrimary</item> + <item name="android:textAllCaps">false</item> </style> + <!-- This gets overridden for specific platform versions and/or configs --> + <style name="ActionBarTheme" parent="@style/ActionBarThemeCommon"/> + <style name="ActionModeStyle" parent="Widget.AppCompat.ActionMode"> <!-- attr "height" was used by support lib should not in overlay scope --> <item name="height">@dimen/action_bar_size</item> |