@Override public void loadMore(int offset, int pageSize) { List<Position> morePositions = databaseHelper.loadLikedPositions(pageSize, offset); likedPositions.addAll(morePositions); positionAdapter.notifyDataSetChanged(); }
private void refreshLikedPositions() { likedPositions.clear(); likedPositions.addAll(databaseHelper.loadLikedPositions()); positionAdapter.notifyDataSetChanged(); }