Prevent TextureView from ever setting a null layer paint
Bug #8760436 DO NOT MERGE Change-Id: I7e4d09fa534f539cb99ebeaa8159fb11920460cf
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user