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

Commit 25739837 authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Fix shape drawable constructor"

parents c2248715 2cc13d0e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ public class ShapeDrawable extends Drawable {
    private ShapeDrawable(ShapeState state) {
        mShapeState = new ShapeState(state);

        if (state.mTint != null) {
        if (state != null && state.mTint != null) {
            final int color = state.mTint.getColorForState(getState(), 0);
            mTintFilter = new PorterDuffColorFilter(color, state.mTintMode);
        }