SurfaceView only call forceDisconnect if isValid
Change-Id: I683c2f937f44d8b3d912839a3e91cbd5b5c7f437 Fixes: 31778946 Test: Manual, launch Cookie Jam then tap recents
This commit is contained in:
@@ -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