|
@@ -117,6 +117,12 @@ public class ContactPersonListFragment extends BaseMVPFragment<FragmentContactLi
|
|
|
|
|
|
@Override
|
|
|
protected void initData() {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onResume() {
|
|
|
+ super.onResume();
|
|
|
presenter.queryFriendList(getContext(), searchCondition);
|
|
|
}
|
|
|
|
|
@@ -134,6 +140,8 @@ public class ContactPersonListFragment extends BaseMVPFragment<FragmentContactLi
|
|
|
.invalidate();
|
|
|
mListAdapter.setNewInstance(contactListBeans);
|
|
|
} else {
|
|
|
+ mListAdapter.getData().clear();
|
|
|
+ mListAdapter.notifyDataSetChanged();
|
|
|
showEmptyView();
|
|
|
}
|
|
|
}
|
|
@@ -144,6 +152,10 @@ public class ContactPersonListFragment extends BaseMVPFragment<FragmentContactLi
|
|
|
if (isDetached()) {
|
|
|
return;
|
|
|
}
|
|
|
+ if (mListAdapter != null) {
|
|
|
+ mListAdapter.getData().clear();
|
|
|
+ mListAdapter.notifyDataSetChanged();
|
|
|
+ }
|
|
|
mViewBinding.refreshLayout.finishRefresh();
|
|
|
}
|
|
|
|