Fix bug with progress bar on contacts list
This commit is contained in:
parent
7dc07c1160
commit
8106c15d55
1 changed files with 7 additions and 3 deletions
|
@ -349,7 +349,7 @@ public class ContactsListFragment extends Fragment implements OnClickListener, O
|
|||
}
|
||||
contactsList.setFastScrollEnabled(true);
|
||||
adapter.notifyDataSetInvalidated();
|
||||
|
||||
|
||||
|
||||
if (adapter.getCount() > 0) {
|
||||
contactsFetchInProgress.setVisibility(View.GONE);
|
||||
|
@ -393,6 +393,10 @@ public class ContactsListFragment extends Fragment implements OnClickListener, O
|
|||
sipAddressToAdd = null;
|
||||
}
|
||||
|
||||
if (searchField != null && searchField.getText().toString().length() > 0) {
|
||||
if (contactsFetchInProgress != null) contactsFetchInProgress.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
if (LinphoneActivity.isInstanciated()) {
|
||||
LinphoneActivity.instance().selectMenu(FragmentsAvailable.CONTACTS_LIST);
|
||||
LinphoneActivity.instance().hideTabBar(false);
|
||||
|
@ -463,7 +467,7 @@ public class ContactsListFragment extends Fragment implements OnClickListener, O
|
|||
ContactsListAdapter(List<LinphoneContact> contactsList) {
|
||||
updateDataSet(contactsList);
|
||||
}
|
||||
|
||||
|
||||
public void updateDataSet(List<LinphoneContact> contactsList) {
|
||||
contacts = contactsList;
|
||||
|
||||
|
@ -484,7 +488,7 @@ public class ContactsListFragment extends Fragment implements OnClickListener, O
|
|||
sectionsList = new ArrayList<String>(map.keySet());
|
||||
sections = new String[sectionsList.size()];
|
||||
sectionsList.toArray(sections);
|
||||
|
||||
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue