Do not re-fetch contacts when going into contacts list
This commit is contained in:
parent
fb09741ee9
commit
07383beea4
1 changed files with 1 additions and 2 deletions
|
@ -148,7 +148,6 @@ public class ContactsListFragment extends Fragment implements OnClickListener, O
|
||||||
|
|
||||||
contactsFetchInProgress = (ProgressBar) view.findViewById(R.id.contactsFetchInProgress);
|
contactsFetchInProgress = (ProgressBar) view.findViewById(R.id.contactsFetchInProgress);
|
||||||
contactsFetchInProgress.setVisibility(View.VISIBLE);
|
contactsFetchInProgress.setVisibility(View.VISIBLE);
|
||||||
ContactsManager.getInstance().fetchContactsAsync();
|
|
||||||
|
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
|
@ -394,8 +393,8 @@ public class ContactsListFragment extends Fragment implements OnClickListener, O
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onResume() {
|
public void onResume() {
|
||||||
ContactsManager.addContactsListener(this);
|
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
ContactsManager.addContactsListener(this);
|
||||||
|
|
||||||
if (editConsumed) {
|
if (editConsumed) {
|
||||||
editOnClick = false;
|
editOnClick = false;
|
||||||
|
|
Loading…
Reference in a new issue