Merge "SurfaceView only call forceDisconnect if isValid" into nyc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
00515f8eab
@@ -598,7 +598,9 @@ public class SurfaceView extends View {
|
||||
// surfaceDestroyed and surfaceCreated, we force a disconnect,
|
||||
// so the next connect will always work if we end up reusing
|
||||
// the surface.
|
||||
mSurface.forceScopedDisconnect();
|
||||
if (mSurface.isValid()) {
|
||||
mSurface.forceScopedDisconnect();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user