diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-03-20 22:04:46 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-03-20 22:04:46 +0100 |
commit | f249b9bf33e2b1c3df0ec164cd21776e662f0841 (patch) | |
tree | deafc2f36955a6e5686e1d340acb3323510386c9 /src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java | |
parent | 76e10f17a62f867116c146d7be9da3ea8dfc311d (diff) |
show own account if multi account is enabled
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java b/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java index 824546266..d4b3218ee 100644 --- a/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java +++ b/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java @@ -530,6 +530,12 @@ public class ContactDetailsActivity extends OmemoActivity implements OnAccountUp binding.detailsContactBadge.setImageBitmap(avatarService().get(contact, getPixel(Config.AVATAR_SIZE))); binding.detailsContactBadge.setOnClickListener(this.onBadgeClick); + if (xmppConnectionService.multipleAccounts()) { + binding.detailsAccount.setVisibility(View.VISIBLE); + } else { + binding.detailsAccount.setVisibility(View.GONE); + } + binding.detailsContactKeys.removeAllViews(); boolean hasKeys = false; LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); |