修复部分bug

This commit is contained in:
huangzhuanghua
2016-09-29 18:32:55 +08:00
parent e5e6a07e24
commit 47914f94ac
67 changed files with 450 additions and 813 deletions

View File

@ -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);
}