Commit 8dea7183 authored by yangwu.jia's avatar yangwu.jia

rollback

parent 8d797657
...@@ -54,7 +54,7 @@ public class BoostFlutterView extends FrameLayout { ...@@ -54,7 +54,7 @@ public class BoostFlutterView extends FrameLayout {
private BoostFlutterEngine mFlutterEngine; private BoostFlutterEngine mFlutterEngine;
private XFlutterView mFlutterView; private XFlutterView mFlutterView;
private XPlatformPlugin mPlatformPlugin; private PlatformPlugin mPlatformPlugin;
private Bundle mArguments; private Bundle mArguments;
...@@ -114,7 +114,7 @@ public class BoostFlutterView extends FrameLayout { ...@@ -114,7 +114,7 @@ public class BoostFlutterView extends FrameLayout {
if (mArguments == null) { if (mArguments == null) {
mArguments = new Bundle(); mArguments = new Bundle();
} }
mPlatformPlugin = new XPlatformPlugin((Activity) getContext(), mFlutterEngine.getPlatformChannel()); mPlatformPlugin = new PlatformPlugin((Activity) getContext(), mFlutterEngine.getPlatformChannel());
mFlutterView = new XFlutterView(getContext(), getRenderMode(), getTransparencyMode()); mFlutterView = new XFlutterView(getContext(), getRenderMode(), getTransparencyMode());
addView(mFlutterView, new FrameLayout.LayoutParams( addView(mFlutterView, new FrameLayout.LayoutParams(
...@@ -290,12 +290,12 @@ public class BoostFlutterView extends FrameLayout { ...@@ -290,12 +290,12 @@ public class BoostFlutterView extends FrameLayout {
} }
} }
public void onDestroy() { public void onDestroy() {
Debuger.log("BoostFlutterView onDestroy"); Debuger.log("BoostFlutterView onDestroy");
mFlutterView.removeOnFirstFrameRenderedListener(mOnFirstFrameRenderedListener); mFlutterView.removeOnFirstFrameRenderedListener(mOnFirstFrameRenderedListener);
mFlutterView.release(); mFlutterView.release();
mPlatformPlugin.release();
} }
//混合栈的返回和原来Flutter的返回逻辑不同 //混合栈的返回和原来Flutter的返回逻辑不同
......
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