@Override public void onSuccess(NoteList result) { noteListAdapter.addNotes(result); noteListAdapter.notifyDataSetChanged(); currentOffset += result.getNotesSize(); if (result.getNotesSize() >= MAX_ITEMS) { noteListAdapter.addLoading(); } else { isLastPage = true; } hideLoading(); }