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

rollback

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