use of com.xabber.android.presentation.ui.contactlist.viewobjects.AccountWithContactsVO in project xabber-android by redsolution.
the class ContactListPresenter method createContactListWithAccounts.
private void createContactListWithAccounts(List<IFlexible> items, AccountConfiguration rosterAccount, Comparator<AbstractContact> comparator) {
AccountWithContactsVO account = AccountWithContactsVO.convert(rosterAccount, this);
rosterAccount.sortAbstractContacts(comparator);
for (AbstractContact contact : rosterAccount.getAbstractContacts()) {
account.addSubItem(SettingsManager.contactsShowMessages() ? ExtContactVO.convert(contact, this) : ContactVO.convert(contact, this));
}
items.add(account);
}
Aggregations