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