Same color for icon and text for dark wallpaper
Example screenshot: https://photos.app.goo.gl/BdFRnv8CrVDmcg3HA
Fixes: 126814811
Change-Id: Ie9862e84baf8f302e3e56b9c3ca77588c08b7c60
diff --git a/src/com/android/customization/picker/theme/ThemeFragment.java b/src/com/android/customization/picker/theme/ThemeFragment.java
index a93ff71..ea5d023 100644
--- a/src/com/android/customization/picker/theme/ThemeFragment.java
+++ b/src/com/android/customization/picker/theme/ThemeFragment.java
@@ -393,9 +393,9 @@
int colorsHint = WallpaperColors.fromBitmap(bitmap).getColorHints();
TextView header = view.findViewById(R.id.theme_preview_card_header);
if ((colorsHint & WallpaperColors.HINT_SUPPORTS_DARK_TEXT) == 0) {
- header.setTextColor(res.getColor(R.color.text_color_light, null));
- header.setCompoundDrawableTintList(ColorStateList.valueOf(
- mPreviewInfo.colorAccentDark));
+ int colorLight = res.getColor(R.color.text_color_light, null);
+ header.setTextColor(colorLight);
+ header.setCompoundDrawableTintList(ColorStateList.valueOf(colorLight));
} else {
header.setTextColor(res.getColor(R.color.text_color_dark, null));
header.setCompoundDrawableTintList(ColorStateList.valueOf(