Fix loop showing used clients

This commit is contained in:
Arne 2025-01-09 18:49:31 +01:00
parent 56979376ca
commit 88bb00137a

View file

@ -788,10 +788,11 @@ public class ContactDetailsActivity extends OmemoActivity implements OnAccountUp
binding.clients.setVisibility(View.GONE); binding.clients.setVisibility(View.GONE);
} else { } else {
binding.clients.setVisibility(View.VISIBLE); binding.clients.setVisibility(View.VISIBLE);
for (int i = 0; i < resources.length; i++) { StringBuilder clientsText = new StringBuilder();
binding.clients.append(resources[i]); for(String value: resources) {
binding.clients.append("\n"); clientsText.append(value).append("\n");
} }
binding.clients.setText(clientsText);
} }
populateView(); populateView();