summaryrefslogtreecommitdiff
path: root/graphics/java/android
diff options
context:
space:
mode:
author Doris Liu <tianliu@google.com> 2018-08-03 21:12:44 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2018-08-03 21:12:44 +0000
commitf6bdfbc9795a452f54819b1ed7ec5c334221d089 (patch)
treeb2c58249b87f7ad6efada3a71039a3eb1d534ffc /graphics/java/android
parent08dd510f3d41a4296ecf85f1bd387cd7235d6013 (diff)
parent5035238d95dcbe487dd08f11804829de9615bc1b (diff)
Merge "Support theme attrs in non-stateful CSL for VD"
Diffstat (limited to 'graphics/java/android')
-rw-r--r--graphics/java/android/graphics/drawable/VectorDrawable.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/java/android/graphics/drawable/VectorDrawable.java b/graphics/java/android/graphics/drawable/VectorDrawable.java
index 040601c3472a..7325b857f02c 100644
--- a/graphics/java/android/graphics/drawable/VectorDrawable.java
+++ b/graphics/java/android/graphics/drawable/VectorDrawable.java
@@ -2033,7 +2033,7 @@ public class VectorDrawable extends Drawable {
if (fillColors instanceof GradientColor) {
mFillColors = fillColors;
fillGradient = ((GradientColor) fillColors).getShader();
- } else if (fillColors.isStateful()) {
+ } else if (fillColors.isStateful() || fillColors.canApplyTheme()) {
mFillColors = fillColors;
} else {
mFillColors = null;
@@ -2049,7 +2049,7 @@ public class VectorDrawable extends Drawable {
if (strokeColors instanceof GradientColor) {
mStrokeColors = strokeColors;
strokeGradient = ((GradientColor) strokeColors).getShader();
- } else if (strokeColors.isStateful()) {
+ } else if (strokeColors.isStateful() || strokeColors.canApplyTheme()) {
mStrokeColors = strokeColors;
} else {
mStrokeColors = null;