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);
|
contactsList.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
ContactsListAdapter adapter;
|
ContactsListAdapter adapter;
|
||||||
|
contactsList.setFastScrollEnabled(false);
|
||||||
if (onlyDisplayLinphoneContacts) {
|
if (onlyDisplayLinphoneContacts) {
|
||||||
contactsList.setChoiceMode(AbsListView.CHOICE_MODE_MULTIPLE);
|
contactsList.setChoiceMode(AbsListView.CHOICE_MODE_MULTIPLE);
|
||||||
adapter = new ContactsListAdapter(ContactsManager.getInstance().getSIPContacts());
|
adapter = new ContactsListAdapter(ContactsManager.getInstance().getSIPContacts());
|
||||||
|
@ -347,6 +348,9 @@ public class ContactsListFragment extends Fragment implements OnClickListener, O
|
||||||
contactsList.setAdapter(adapter);
|
contactsList.setAdapter(adapter);
|
||||||
edit.setEnabled(true);
|
edit.setEnabled(true);
|
||||||
}
|
}
|
||||||
|
contactsList.setFastScrollEnabled(true);
|
||||||
|
adapter.notifyDataSetInvalidated();
|
||||||
|
|
||||||
|
|
||||||
if (adapter.getCount() > 0) {
|
if (adapter.getCount() > 0) {
|
||||||
contactsFetchInProgress.setVisibility(View.GONE);
|
contactsFetchInProgress.setVisibility(View.GONE);
|
||||||
|
|
Loading…
Reference in a new issue