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

Commit 2cc13d0e authored by Alan Viverette's avatar Alan Viverette
Browse files

Fix shape drawable constructor

Change-Id: Ibb2c1993faf9d2baae3130f334475aa07fbe9015
parent 813d85b8
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);
        }