use of com.xabber.android.data.roster.AbstractContact in project xabber-android by redsolution.
the class GroupEditor method update.
private void update() {
AbstractContact abstractContact = RosterManager.getInstance().getBestContact(account, user);
contactTitleActionBarInflater.update(abstractContact);
contactTitleActionBarInflater.setStatusText(user);
contactTitleActionBarInflater.hideStatusIcon();
}
use of com.xabber.android.data.roster.AbstractContact in project xabber-android by redsolution.
the class ChatListAdapter method getView.
@Override
public View getView(int position, View convertView, ViewGroup parent) {
final AbstractChat abstractChat = (AbstractChat) getItem(position);
final AbstractContact abstractContact = RosterManager.getInstance().getBestContact(abstractChat.getAccount(), abstractChat.getUser());
return contactItemInflater.setUpContactView(convertView, parent, abstractContact);
}
use of com.xabber.android.data.roster.AbstractContact in project xabber-android by redsolution.
the class QuestionViewer method update.
private void update() {
AbstractContact abstractContact = RosterManager.getInstance().getBestContact(account, user);
contactTitleActionBarInflater.update(abstractContact);
}
use of com.xabber.android.data.roster.AbstractContact 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);
}
use of com.xabber.android.data.roster.AbstractContact in project xabber-android by redsolution.
the class ContactListPresenter method createContactListWithGroups.
private void createContactListWithGroups(List<IFlexible> items, boolean showEmptyGroups, Map<String, GroupConfiguration> groups, Comparator<AbstractContact> comparator) {
for (GroupConfiguration rosterConfiguration : groups.values()) {
if (showEmptyGroups || !rosterConfiguration.isEmpty()) {
GroupVO group = GroupVO.convert(rosterConfiguration, false, this);
rosterConfiguration.sortAbstractContacts(comparator);
for (AbstractContact contact : rosterConfiguration.getAbstractContacts()) {
group.addSubItem(SettingsManager.contactsShowMessages() ? ExtContactVO.convert(contact, this) : ContactVO.convert(contact, this));
}
items.add(group);
}
}
}
Aggregations