private void updateListForEditing() { if (mCategoryId != AccountManager.DEFAULT_CATEGORY_ID) { ArrayList<AccountManager.Account> accounts = AccountManager.getInstance().getAccountsByCategory(AccountManager.DEFAULT_CATEGORY_ID); if (mCategoryId == AccountManager.ALL_CATEGORY_ID) { mAdapter.addList(accounts, true); } else { mAdapter.markAll(mListView); mAdapter.addList(accounts, false); mAdapter.notifyDataSetChanged(); } } }