mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Update src/org/thoughtcrime/securesms/accounts/AccountSelectionListFragment.java
Co-authored-by: Hocuri <hocuri@gmx.de>
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user