修复部分bug
This commit is contained in:
@ -21,8 +21,6 @@ public class BaseFragment extends Fragment implements OnCallBackListener {
|
||||
|
||||
protected View view;
|
||||
|
||||
protected boolean isDestroy;
|
||||
|
||||
protected void init(int layout) {
|
||||
view = View.inflate(getActivity(), layout, null);
|
||||
|
||||
@ -49,7 +47,6 @@ public class BaseFragment extends Fragment implements OnCallBackListener {
|
||||
@Override
|
||||
public void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
isDestroy = false;
|
||||
EventBus.getDefault().register(this);
|
||||
}
|
||||
|
||||
@ -66,8 +63,6 @@ public class BaseFragment extends Fragment implements OnCallBackListener {
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
view = null;
|
||||
isDestroy = true;
|
||||
EventBus.getDefault().unregister(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user