* commit '88a4292186fef902db476d63529d0b15a17d9d4d': Fix SurfaceView notifies on invalid surfaces.
This commit is contained in:
committed by
Android Git Automerger
commit
1cc9386e96
@@ -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