Search in sources :

Example 1 with AccountWithContactsVO

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);
}
Also used : AccountWithContactsVO(com.xabber.android.presentation.ui.contactlist.viewobjects.AccountWithContactsVO) AbstractContact(com.xabber.android.data.roster.AbstractContact)

Aggregations

AbstractContact (com.xabber.android.data.roster.AbstractContact)1 AccountWithContactsVO (com.xabber.android.presentation.ui.contactlist.viewobjects.AccountWithContactsVO)1