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