提交 c53ddc5c 编写于 作者: J Jason Simmons

Allow detach of an Android PlatformView that still holds a window (#2591)

The PlatformView may not receive the surfaceDestroy notification before its
activity is destroyed (this was happening on the Android emulator).

If this happens, allow the PlatformView to be detached and have it release
its window during destruction.
上级 4265c100
......@@ -47,7 +47,6 @@ PlatformViewAndroid::~PlatformViewAndroid() {
}
void PlatformViewAndroid::Detach(JNIEnv* env, jobject obj) {
DCHECK(!window_);
shell_view_.reset();
// Note: |this| has been destroyed at this point.
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册