Fixed broken sections on contacts list after switching filter
This commit is contained in:
parent
c58b999552
commit
76f2d01db3
1 changed files with 4 additions and 0 deletions
|
@ -336,6 +336,7 @@ public class ContactsListFragment extends Fragment implements OnClickListener, O
|
|||
contactsList.setVisibility(View.VISIBLE);
|
||||
|
||||
ContactsListAdapter adapter;
|
||||
contactsList.setFastScrollEnabled(false);
|
||||
if (onlyDisplayLinphoneContacts) {
|
||||
contactsList.setChoiceMode(AbsListView.CHOICE_MODE_MULTIPLE);
|
||||
adapter = new ContactsListAdapter(ContactsManager.getInstance().getSIPContacts());
|
||||
|
@ -347,6 +348,9 @@ public class ContactsListFragment extends Fragment implements OnClickListener, O
|
|||
contactsList.setAdapter(adapter);
|
||||
edit.setEnabled(true);
|
||||
}
|
||||
contactsList.setFastScrollEnabled(true);
|
||||
adapter.notifyDataSetInvalidated();
|
||||
|
||||
|
||||
if (adapter.getCount() > 0) {
|
||||
contactsFetchInProgress.setVisibility(View.GONE);
|
||||
|
|
Loading…
Reference in a new issue