This commit is contained in:
Daniel Gultsch 2014-05-17 11:08:32 +02:00
parent 836366bf2d
commit bab69ffcf9
1 changed files with 4 additions and 3 deletions

View File

@ -515,9 +515,10 @@ public class ContactsActivity extends XmppActivity {
getActionBar().setHomeButtonEnabled(false); getActionBar().setHomeButtonEnabled(false);
} }
this.rosterContacts.clear(); this.rosterContacts.clear();
for (int i = 0; i < accounts.size(); ++i) { for(Account account : accounts) {
rosterContacts.addAll(xmppConnectionService.getRoster(accounts if (account.getStatus() != Account.STATUS_DISABLED) {
.get(i))); rosterContacts.addAll(xmppConnectionService.getRoster(account));
}
} }
updateAggregatedContacts(); updateAggregatedContacts();
} }