* commit '807c7ae00bc5b8a7fe68ba4acbfa3909a955ae70': Fix SurfaceView notifies on invalid surfaces.
This commit is contained in:
committed by
Android Git Automerger
commit
88a4292186
@@ -531,7 +531,7 @@ public class SurfaceView extends View {
|
||||
|
||||
mSurface.transferFrom(mNewSurface);
|
||||
|
||||
if (visible) {
|
||||
if (visible && mSurface.isValid()) {
|
||||
if (!mSurfaceCreated && (surfaceChanged || visibleChanged)) {
|
||||
mSurfaceCreated = true;
|
||||
mIsCreating = true;
|
||||
|
||||
Reference in New Issue
Block a user