Commit ca265ff1 authored by 龚文硕's avatar 龚文硕

新的注册方式在onAttach时执行attachToView

parent 3d304739
...@@ -182,7 +182,7 @@ public class FlutterSplashView extends FrameLayout { ...@@ -182,7 +182,7 @@ public class FlutterSplashView extends FrameLayout {
public void onAttach() { public void onAttach() {
Debuger.log("BoostFlutterView onAttach"); Debuger.log("BoostFlutterView onAttach");
mFlutterEngine.getPlatformViewsController().attachToView(flutterView);
flutterView.attachToFlutterEngine(mFlutterEngine); flutterView.attachToFlutterEngine(mFlutterEngine);
} }
...@@ -190,7 +190,7 @@ public class FlutterSplashView extends FrameLayout { ...@@ -190,7 +190,7 @@ public class FlutterSplashView extends FrameLayout {
public void onDetach() { public void onDetach() {
Debuger.log("BoostFlutterView onDetach"); Debuger.log("BoostFlutterView onDetach");
mFlutterEngine.getPlatformViewsController().detachFromView();
flutterView.detachFromFlutterEngine(); flutterView.detachFromFlutterEngine();
} }
......
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