Commit 41143da2 authored by Yacumima's avatar Yacumima

dev

parent efd7bf15
...@@ -284,7 +284,7 @@ public class BoostFlutterView extends FrameLayout { ...@@ -284,7 +284,7 @@ public class BoostFlutterView extends FrameLayout {
if(stateListener != null) { if(stateListener != null) {
stateListener.beforeEngineDetach(mFlutterEngine,this); stateListener.beforeEngineDetach(mFlutterEngine,this);
} }
mFlutterView.detachFromFlutterEngine(); //mFlutterView.detachFromFlutterEngine();
mEngineAttached = false; mEngineAttached = false;
if(stateListener != null) { if(stateListener != null) {
stateListener.afterEngineDetached(mFlutterEngine,this); stateListener.afterEngineDetached(mFlutterEngine,this);
......
...@@ -217,8 +217,8 @@ class ContainerCoordinator { ...@@ -217,8 +217,8 @@ class ContainerCoordinator {
if (Platform.isAndroid) { if (Platform.isAndroid) {
try { try {
final SemanticsOwner owner = final SemanticsOwner owner =
WidgetsBinding.instance.pipelineOwner.semanticsOwner; WidgetsBinding.instance.pipelineOwner?.semanticsOwner;
final SemanticsNode root = owner.rootSemanticsNode; final SemanticsNode root = owner?.rootSemanticsNode;
root?.detach(); root?.detach();
root?.attach(owner); root?.attach(owner);
} catch (e) { } catch (e) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment