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

This commit is contained in:
Rob Carr
2018-04-18 18:59:43 +00:00
committed by Android (Google) Code Review

View File

@@ -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();
}
}
}