@Override protected List<AccountRecord> doInBackground(Void... params) { List<AccountRecord> tempArList = null; tempArList = ArDao.getSingleInstance().queryLimitRows(offset, LIMIT_ROW_TOTAL); if (tempArList != null) { arList.addAll(tempArList); } return tempArList; }
public void updateArListViewSync() { arList = ArDao.getSingleInstance().queryLimitRows(0, Math.max(LIMIT_ROW_TOTAL, arList.size())); if (arList.size() < LIMIT_ROW_TOTAL) { btLoadMore.setVisibility(View.GONE); } else { btLoadMore.setVisibility(View.VISIBLE); } arAdapter.notifyDataSetChanged(); ArFragment.this.setListViewToTop(); }
@Override protected List<AccountRecord> doInBackground(Boolean... params) { isSetListViewToTop = params[0]; List<AccountRecord> tempArList = null; tempArList = ArDao.getSingleInstance().queryLimitRows(0, Math.max(LIMIT_ROW_TOTAL, arList.size())); if (tempArList != null) { arList = tempArList; } return tempArList; }