Commit 635ce87a authored by yangwu.jia's avatar yangwu.jia

去掉销毁接口,目前该功能还有bug

parent 54670d3f
...@@ -163,7 +163,6 @@ public class FlutterBoost { ...@@ -163,7 +163,6 @@ public class FlutterBoost {
} }
public void boostPluginRegistry(){ public void boostPluginRegistry(){
mPlatform.getApplication().unregisterActivityLifecycleCallbacks(mActivityLifecycleCallbacks);
if(mRegistry!=null&& !mRegistry.hasPlugin("boostPluginRegistry")){ if(mRegistry!=null&& !mRegistry.hasPlugin("boostPluginRegistry")){
mPlatform.registerPlugins(mRegistry); mPlatform.registerPlugins(mRegistry);
mRegistry.registrarFor("boostPluginRegistry"); mRegistry.registrarFor("boostPluginRegistry");
...@@ -235,10 +234,7 @@ public class FlutterBoost { ...@@ -235,10 +234,7 @@ public class FlutterBoost {
return this; return this;
} }
public ConfigBuilder whenEngineDestory(int whenEngineDestory) {
this.whenEngineDestory = whenEngineDestory;
return this;
}
public ConfigBuilder lifecycleListener(BoostLifecycleListener lifecycleListener) { public ConfigBuilder lifecycleListener(BoostLifecycleListener lifecycleListener) {
this.lifecycleListener = lifecycleListener; this.lifecycleListener = lifecycleListener;
...@@ -275,10 +271,6 @@ public class FlutterBoost { ...@@ -275,10 +271,6 @@ public class FlutterBoost {
return ConfigBuilder.this.whenEngineStart; return ConfigBuilder.this.whenEngineStart;
} }
@Override
public int whenEngineDestroy() {
return ConfigBuilder.this.whenEngineDestory;
}
public FlutterView.RenderMode renderMode() { public FlutterView.RenderMode renderMode() {
return ConfigBuilder.this.renderMode; return ConfigBuilder.this.renderMode;
......
...@@ -82,11 +82,9 @@ public class FlutterViewContainerManager implements IContainerManager { ...@@ -82,11 +82,9 @@ public class FlutterViewContainerManager implements IContainerManager {
void removeRecord(IContainerRecord record) { void removeRecord(IContainerRecord record) {
mRecordStack.remove(record); mRecordStack.remove(record);
mRecordMap.remove(record.getContainer()); mRecordMap.remove(record.getContainer());
if(mRecordMap.isEmpty()){ // if(mRecordMap.isEmpty()){
if( FlutterBoost.instance().platform().whenEngineDestroy()== FlutterBoost.ConfigBuilder.All_FLUTTER_ACTIVITY_DESTROY){ //
FlutterBoost.instance().boostDestroy(); // }
}
}
} }
......
...@@ -19,7 +19,6 @@ public abstract class Platform { ...@@ -19,7 +19,6 @@ public abstract class Platform {
public abstract int whenEngineStart(); public abstract int whenEngineStart();
public abstract int whenEngineDestroy();
public abstract FlutterView.RenderMode renderMode(); public abstract FlutterView.RenderMode renderMode();
......
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