From 646ed8bb183cc22ea674b49d50cbef0834128f36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asiel=20D=C3=ADaz=20Ben=C3=ADtez?= Date: Mon, 11 Oct 2021 17:49:50 -0400 Subject: [PATCH] Update src/org/thoughtcrime/securesms/accounts/AccountSelectionListFragment.java Co-authored-by: Hocuri --- .../securesms/accounts/AccountSelectionListFragment.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/org/thoughtcrime/securesms/accounts/AccountSelectionListFragment.java b/src/org/thoughtcrime/securesms/accounts/AccountSelectionListFragment.java index 4249ae9ab..e6f63e203 100644 --- a/src/org/thoughtcrime/securesms/accounts/AccountSelectionListFragment.java +++ b/src/org/thoughtcrime/securesms/accounts/AccountSelectionListFragment.java @@ -44,10 +44,10 @@ public class AccountSelectionListFragment extends DialogFragment int[] ids = new int[accountIds.length]; ids[0] = DC_CONTACT_ID_ADD_ACCOUNT; int j = 0; - for (int i = 0; i < accountIds.length; i++) { - if (accountIds[i] != selectedAccountId) { - ids[++j] = accountIds[i]; - } + for (int accountId : accountIds) { + if (accountId != selectedAccountId) { + ids[++j] = accountId; + } } adapter.changeData(ids); }