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

Commit 3ef2d6d9 authored by Rob Carr's avatar Rob Carr Committed by Android (Google) Code Review
Browse files

Merge "ViewRoot: Ensure we release surface from setWindowStopped." into pi-dev

parents f0cbbff6 6858bb9a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1339,6 +1339,10 @@ public final class ViewRootImpl implements ViewParent,
            for (int i = 0; i < mWindowStoppedCallbacks.size(); i++) {
                mWindowStoppedCallbacks.get(i).windowStopped(stopped);
            }

            if (mStopped) {
                mSurface.release();
            }
        }
    }