Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5035238d authored by Doris Liu's avatar Doris Liu
Browse files

Support theme attrs in non-stateful CSL for VD

BUG: 111446567
Test: ag/4686005
Change-Id: Ic79b13b62252d6ff294984ae82aec09708c9ba68
parent 602542f8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;