From 88bb00137a291f6ab8f863c3511970489d9c4cee Mon Sep 17 00:00:00 2001
From: Arne <arne@monocles.de>
Date: Thu, 9 Jan 2025 18:49:31 +0100
Subject: [PATCH] Fix loop showing used clients

---
 .../eu/siacs/conversations/ui/ContactDetailsActivity.java  | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

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();