mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
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…
Add table
Reference in a new issue