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

Commit cf682647 authored by Rob Carr's avatar Rob Carr Committed by android-build-merger
Browse files

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

am: 871d0c07

Change-Id: I5332781f690fed2353910cc2e993f8d4708d6c73
parents 99a0e6ee 871d0c07
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();
            }
        }
    }