Use the correct color in theme thumbnail tile
Resolve the accent color to light/dark based on the current
config.
Bug: 137086778
Change-Id: I101ae3880356cde6fb8dfdd16ebc7ff3c3437df3
diff --git a/src/com/android/customization/model/theme/ThemeBundle.java b/src/com/android/customization/model/theme/ThemeBundle.java
index 2fc5d90..e83e852 100644
--- a/src/com/android/customization/model/theme/ThemeBundle.java
+++ b/src/com/android/customization/model/theme/ThemeBundle.java
@@ -113,7 +113,7 @@
mPreviewInfo.headlineFontFamily);
if (mPreviewInfo.shapeDrawable != null) {
((ShapeDrawable) mPreviewInfo.shapeDrawable).getPaint().setColor(
- mPreviewInfo.colorAccentLight);
+ mPreviewInfo.resolveAccentColor(res));
((ImageView) view.findViewById(R.id.theme_option_shape)).setImageDrawable(
mPreviewInfo.shapeDrawable);
}