Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15473e00 authored by John Reck's avatar John Reck Committed by android-build-merger
Browse files

SurfaceView only call forceDisconnect if isValid am: 6ba466ff am: 5a0da698

am: 88123c4e

Change-Id: I612a1aafbb9deace211845d93c20f8edaf0746e4
parents e984147f 88123c4e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -600,9 +600,11 @@ 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.
                            if (mSurface.isValid()) {
                                mSurface.forceScopedDisconnect();
                            }
                        }
                    }

                    mSurface.transferFrom(mNewSurface);
                    if (visible && mSurface.isValid()) {