From 31517150ad68a2b2caec25886db762c650cadc45 Mon Sep 17 00:00:00 2001 From: Quin Gillespie Date: Mon, 26 Oct 2026 06:59:58 -0600 Subject: [PATCH] Give watches before Android 12 fixed Wear material colors The Wear material colors pointed at the system's dynamic colors, which only exist from Android 12, and the watch's values-watch-v30 copy applied them on Wear OS 3 too, where the training list items that use them could fail to load. The base colors are now close fixed colors, and values-v31 uses the dynamic ones. Without the watch override, Android 12 and later watches still get the dynamic colors, since a watch qualifier would outrank values-v31. --- lint-baseline.xml | 319 ------------------ .../src/wear/res/values-watch-v30/colors.xml | 30 -- utils/src/main/res/values-v31/colors.xml | 11 +- utils/src/main/res/values/colors.xml | 21 +- 4 files changed, 21 insertions(+), 360 deletions(-) delete mode 100644 talkback/src/wear/res/values-watch-v30/colors.xml diff --git a/lint-baseline.xml b/lint-baseline.xml index b8c648e41..2c52a5c5e 100644 --- a/lint-baseline.xml +++ b/lint-baseline.xml @@ -10652,105 +10652,6 @@ column="12"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @android:color/system_neutral1_900 - @android:color/system_neutral1_50 - @android:color/system_accent1_600 - @android:color/system_neutral2_700 - @android:color/system_neutral2_200 - @android:color/system_neutral2_200 - @android:color/system_neutral1_10 - @android:color/system_neutral1_800 - @android:color/system_neutral1_800 - @color/google_black - @color/google_white - diff --git a/utils/src/main/res/values-v31/colors.xml b/utils/src/main/res/values-v31/colors.xml index 34008b0b9..a6fde95be 100644 --- a/utils/src/main/res/values-v31/colors.xml +++ b/utils/src/main/res/values-v31/colors.xml @@ -15,5 +15,14 @@ limitations under the License. --> - + + @android:color/system_neutral1_900 + @android:color/system_neutral1_50 + @android:color/system_accent1_600 + @android:color/system_neutral2_700 + @android:color/system_neutral2_200 + @android:color/system_neutral2_200 + @android:color/system_neutral1_10 + @android:color/system_neutral1_800 + @android:color/system_neutral1_800 diff --git a/utils/src/main/res/values/colors.xml b/utils/src/main/res/values/colors.xml index be70f4530..55d460702 100644 --- a/utils/src/main/res/values/colors.xml +++ b/utils/src/main/res/values/colors.xml @@ -43,16 +43,17 @@ @color/google_black - - @android:color/system_neutral1_900 - @android:color/system_neutral1_50 - @android:color/system_accent1_600 - @android:color/system_neutral2_700 - @android:color/system_neutral2_200 - @android:color/system_neutral2_200 - @android:color/system_neutral1_10 - @android:color/system_neutral1_800 - @android:color/system_neutral1_800 + + @color/google_grey900 + @color/google_grey50 + @color/google_blue600 + @color/google_grey700 + @color/google_grey200 + @color/google_grey200 + @color/google_grey50 + @color/google_grey800 + @color/google_grey800 @color/google_black @color/google_white