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

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

Prevent TextureView from ever setting a null layer paint

Bug #8760436

DO NOT MERGE

Change-Id: I7e4d09fa534f539cb99ebeaa8159fb11920460cf
parent a937b8cb
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();
        }
    }