mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
Update account list adapter, just notifying adapter makes no sense
This commit is contained in:
parent
098cf7dd46
commit
3f952fad30
1 changed files with 2 additions and 2 deletions
|
@ -169,7 +169,7 @@ public class ManageAccountsActivity extends FileActivity
|
|||
*/
|
||||
private ArrayList<AccountListItem> getAccountListItems() {
|
||||
Account[] accountList = AccountManager.get(this).getAccountsByType(MainApp.getAccountType());
|
||||
ArrayList<AccountListItem> adapterAccountList = new ArrayList<AccountListItem>(accountList.length);
|
||||
ArrayList<AccountListItem> adapterAccountList = new ArrayList<>(accountList.length);
|
||||
for (Account account : accountList) {
|
||||
adapterAccountList.add(new AccountListItem(account));
|
||||
}
|
||||
|
@ -271,7 +271,7 @@ public class ManageAccountsActivity extends FileActivity
|
|||
}
|
||||
|
||||
mAccountListAdapter = new AccountListAdapter(this, getAccountListItems());
|
||||
mAccountListAdapter.notifyDataSetChanged();
|
||||
mListView.setAdapter(mAccountListAdapter);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue