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

Commit 083f5518 authored by Alan Viverette's avatar Alan Viverette
Browse files

Fix stroke color in GradientState.initializeWithState()

BUG: 12175674
Change-Id: I084339fd3c31a9b49f5875c9d3bac8f50cd027ca
parent 0dadf4d0
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1446,7 +1446,14 @@ public class GradientDrawable extends Drawable {
            mStrokePaint = new Paint(Paint.ANTI_ALIAS_FLAG);
            mStrokePaint.setStyle(Paint.Style.STROKE);
            mStrokePaint.setStrokeWidth(state.mStrokeWidth);
            if (state.mStrokeColorStateList != null) {
                final int[] currentState = getState();
                final int strokeStateColor = state.mStrokeColorStateList.getColorForState(
                        currentState, 0);
                mStrokePaint.setColor(strokeStateColor);
            } else {
                mStrokePaint.setColor(state.mStrokeColor);
            }

            if (state.mStrokeDashWidth != 0.0f) {
                DashPathEffect e = new DashPathEffect(