diff --git a/src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java b/src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java index 6d5d2b776..8b983b5f0 100644 --- a/src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java @@ -788,10 +788,11 @@ public class ContactDetailsActivity extends OmemoActivity implements OnAccountUp binding.clients.setVisibility(View.GONE); } else { binding.clients.setVisibility(View.VISIBLE); - for (int i = 0; i < resources.length; i++) { - binding.clients.append(resources[i]); - binding.clients.append("\n"); + StringBuilder clientsText = new StringBuilder(); + for(String value: resources) { + clientsText.append(value).append("\n"); } + binding.clients.setText(clientsText); } populateView();