Commit b9826a29 authored by justin's avatar justin

解决boost 常驻最后一个actvity 问题

parent dbbe06ae
...@@ -673,7 +673,7 @@ public class XFlutterView extends FrameLayout { ...@@ -673,7 +673,7 @@ public class XFlutterView extends FrameLayout {
} }
public void release(){ public void release(){
if(textInputPlugin!=null){ if(textInputPlugin!=null){
// textInputPlugin.release(); textInputPlugin.release(this);
} }
} }
......
...@@ -70,6 +70,15 @@ public class XTextInputPlugin { ...@@ -70,6 +70,15 @@ public class XTextInputPlugin {
this.platformViewsController = platformViewsController; this.platformViewsController = platformViewsController;
// this.platformViewsController.attachTextInputPlugin(this); // this.platformViewsController.attachTextInputPlugin(this);
} }
public void release(View v){
if(mView!=null && mView.hashCode()==v.hashCode()){
mView= null;
}
}
public void updateView(View view){ public void updateView(View view){
mView = view; mView = view;
mImm = (InputMethodManager) view.getContext().getSystemService( mImm = (InputMethodManager) view.getContext().getSystemService(
......
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