Merge "Remove Webview Overlays on destroy" into sc-dev

This commit is contained in:
Huihong Luo
2021-08-16 19:22:01 +00:00
committed by Android (Google) Code Review

View File

@@ -100,6 +100,9 @@ WebViewFunctor::~WebViewFunctor() {
destroyContext();
ATRACE_NAME("WebViewFunctor::onDestroy");
if (mSurfaceControl) {
removeOverlays();
}
mCallbacks.onDestroyed(mFunctor, mData);
}