diff --git a/component/common/src/main/java/one/nem/lacerta/component/common/LacertaApplyTagAdapter.java b/component/common/src/main/java/one/nem/lacerta/component/common/LacertaApplyTagAdapter.java index 08440304..1c9954d4 100644 --- a/component/common/src/main/java/one/nem/lacerta/component/common/LacertaApplyTagAdapter.java +++ b/component/common/src/main/java/one/nem/lacerta/component/common/LacertaApplyTagAdapter.java @@ -10,6 +10,7 @@ import androidx.recyclerview.widget.RecyclerView; import java.util.ArrayList; +import one.nem.lacerta.component.common.model.DocumentTagApplyTagDialogExtendedModel; import one.nem.lacerta.model.document.tag.DocumentTag; public class LacertaApplyTagAdapter extends RecyclerView.Adapter{ @@ -21,7 +22,7 @@ public class LacertaApplyTagAdapter extends RecyclerView.Adapter documentTagArrayList; + private ArrayList documentTagArrayList; private LacertaApplyTagDialogListener listener; // Setter @@ -30,14 +31,13 @@ public class LacertaApplyTagAdapter extends RecyclerView.Adapter documentTagArrayList) { + public LacertaApplyTagAdapter setDocumentTagArrayList(ArrayList documentTagArrayList) { this.documentTagArrayList = documentTagArrayList; return this; } - // Constructor - public LacertaApplyTagAdapter(ArrayList documentTagArrayList) { - this.documentTagArrayList = documentTagArrayList; + // Empty constructor + public LacertaApplyTagAdapter() { } @NonNull @@ -49,8 +49,9 @@ public class LacertaApplyTagAdapter extends RecyclerView.Adapter { if (isChecked) { listener.itemChecked(buttonView, position);