aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-05-17 11:08:32 +0200
committerDaniel Gultsch <daniel@gultsch.de>2014-05-17 11:08:32 +0200
commitbab69ffcf90a2bb0390957daef3d186df309957b (patch)
tree61aa12d4b09d66fbe1a0c1c4509bbeb90a16dc7e /src/eu
parent836366bf2d6765234f467c726a686b34429ebeab (diff)
fixed #108
Diffstat (limited to 'src/eu')
-rw-r--r--src/eu/siacs/conversations/ui/ContactsActivity.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/eu/siacs/conversations/ui/ContactsActivity.java b/src/eu/siacs/conversations/ui/ContactsActivity.java
index e403450a..6e15b678 100644
--- a/src/eu/siacs/conversations/ui/ContactsActivity.java
+++ b/src/eu/siacs/conversations/ui/ContactsActivity.java
@@ -515,9 +515,10 @@ public class ContactsActivity extends XmppActivity {
getActionBar().setHomeButtonEnabled(false);
}
this.rosterContacts.clear();
- for (int i = 0; i < accounts.size(); ++i) {
- rosterContacts.addAll(xmppConnectionService.getRoster(accounts
- .get(i)));
+ for(Account account : accounts) {
+ if (account.getStatus() != Account.STATUS_DISABLED) {
+ rosterContacts.addAll(xmppConnectionService.getRoster(account));
+ }
}
updateAggregatedContacts();
}