Update src/org/thoughtcrime/securesms/accounts/AccountSelectionListFragment.java

Co-authored-by: Hocuri <hocuri@gmx.de>
This commit is contained in:
Asiel Díaz Benítez
2021-10-11 17:49:50 -04:00
committed by GitHub
parent bc0d103f13
commit 646ed8bb18
@@ -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);
}