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

Commit c2079c96 authored by Romain Guy's avatar Romain Guy
Browse files

Prevent TextureView from ever setting a null layer paint

Change-Id: If9a418b7eb9969410286df43ee805cd7d8ec17b2
parent 1b7c791a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -260,7 +260,7 @@ public class TextureView extends View {
    @Override
    public void setLayerType(int layerType, Paint paint) {
        if (paint != mLayerPaint) {
            mLayerPaint = paint;
            mLayerPaint = paint == null ? new Paint() : paint;
            invalidate();
        }
    }