aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/ui/ContactDetailsActivity.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-16 19:14:20 +0200
committerAndreas Straub <andy@strb.org>2014-04-18 00:17:34 +0200
commita04d736f75c793dc943c1e0ce7c89e1c20a3a684 (patch)
treec1013c173338bcc6913989a3781ed275b8b350e7 /src/eu/siacs/conversations/ui/ContactDetailsActivity.java
parent4a36abf30fb2d59934d5bfd121542fa82f5c98ce (diff)
fixed possible race conditions with presences
Diffstat (limited to 'src/eu/siacs/conversations/ui/ContactDetailsActivity.java')
-rw-r--r--src/eu/siacs/conversations/ui/ContactDetailsActivity.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/ui/ContactDetailsActivity.java b/src/eu/siacs/conversations/ui/ContactDetailsActivity.java
index 86535ba1..1ed3fa13 100644
--- a/src/eu/siacs/conversations/ui/ContactDetailsActivity.java
+++ b/src/eu/siacs/conversations/ui/ContactDetailsActivity.java
@@ -227,7 +227,11 @@ public class ContactDetailsActivity extends XmppActivity {
status.setTextColor(0xFFe92727);
break;
}
- contactJid.setText(contact.getJid());
+ if (contact.getPresences().size() > 1) {
+ contactJid.setText(contact.getJid()+" ("+contact.getPresences().size()+")");
+ } else {
+ contactJid.setText(contact.getJid());
+ }
accountJid.setText(contact.getAccount().getJid());
UIHelper.prepareContactBadge(this, badge, contact, getApplicationContext());