public void addNoteToList(Note note, int position) { notes.add(position, note); notesAdapter.notifyItemInserted(position); }
public void addNoteToList(Note note) { emptyView.setVisibility(View.GONE); notes.add(0, note); notesAdapter.notifyItemInserted(0); }