diff options
| author | 2018-07-24 22:55:26 -0700 | |
|---|---|---|
| committer | 2018-08-03 01:36:49 +0000 | |
| commit | 5035238d95dcbe487dd08f11804829de9615bc1b (patch) | |
| tree | 10390cd53cef12bef17d37a3b84d5fb4982d6d05 /graphics/java/android | |
| parent | 602542f8e0a5bfda88fe36fb07d84dd1318df0e2 (diff) | |
Support theme attrs in non-stateful CSL for VD
BUG: 111446567
Test: ag/4686005
Change-Id: Ic79b13b62252d6ff294984ae82aec09708c9ba68
Diffstat (limited to 'graphics/java/android')
| -rw-r--r-- | graphics/java/android/graphics/drawable/VectorDrawable.java | 4 |
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 b5bd97f74d84..932203eb19b2 100644 --- a/graphics/java/android/graphics/drawable/VectorDrawable.java +++ b/graphics/java/android/graphics/drawable/VectorDrawable.java @@ -2024,7 +2024,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; @@ -2040,7 +2040,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; |