Commit 61cae433 authored by justin's avatar justin

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

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