为什么removeView后 addView会崩溃?请问该怎么处理?checkGlError返回1286
ilnaygniy opened this issue · 1 comments
ilnaygniy commented
为什么removeView后 addView会崩溃?请问该怎么处理?checkGlError返回1286
ilnaygniy commented
执行CameraView的 @OverRide
public void setVisibility(int visibility) {
int currentVisibility = getVisibility();
if(visibility == currentVisibility) {
return;
}
switch (visibility) {
case VISIBLE:
addRenderSurfaceView();
break;
case GONE:
removeRenderSurfaceView();
break;
case INVISIBLE:
removeRenderSurfaceView();
break;
}
super.setVisibility(visibility);
}
会崩溃