Dodanie konstruktora Adaptera

This commit is contained in:
Naiki00 2021-01-08 23:02:22 +01:00
parent 43a1665cef
commit 9d81fef925

View File

@ -25,6 +25,12 @@ public class NoteAdapter extends RecyclerView.Adapter<NoteAdapter.ViewHolder>{
//obiekt listy notatek
private RecyclerView noteRecyclerView;
//konstruktor
public NoteAdapter(ArrayList<Note> Notes, RecyclerView notesRecyclerView) {
arrNotes = Notes;
noteRecyclerView = notesRecyclerView;
}
//implementacja ViewHoldera
public static class ViewHolder extends RecyclerView.ViewHolder {
public TextView noteTitle;