From 1654700ee0bc7edbabc937d710bd1f618cab2fa2 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 28 Jan 2024 10:11:26 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=AF=E3=83=A9=E3=82=B9=E5=A4=89=E6=95=B0?= =?UTF-8?q?=E3=81=A8Setter=E3=82=92Base=E3=81=AB=E7=A7=BB=E5=8B=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/LacertaFilePickerDialogBase.java | 28 +++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/component/common/src/main/java/one/nem/lacerta/component/common/picker/base/LacertaFilePickerDialogBase.java b/component/common/src/main/java/one/nem/lacerta/component/common/picker/base/LacertaFilePickerDialogBase.java index 79f54e29..973a41af 100644 --- a/component/common/src/main/java/one/nem/lacerta/component/common/picker/base/LacertaFilePickerDialogBase.java +++ b/component/common/src/main/java/one/nem/lacerta/component/common/picker/base/LacertaFilePickerDialogBase.java @@ -21,16 +21,34 @@ import one.nem.lacerta.utils.FeatureSwitch; import one.nem.lacerta.utils.LacertaLogger; public class LacertaFilePickerDialogBase extends DialogFragment { - - @Inject - LacertaLibrary lacertaLibrary; - @Inject LacertaLogger logger; + // Variables + protected String title; + protected String message; + protected String positiveButtonText; + protected String negativeButtonText; + + // Setter + public void setTitle(String title) { + this.title = title; + } + + public void setMessage(String message) { + this.message = message; + } + + public void setPositiveButtonText(String positiveButtonText) { + this.positiveButtonText = positiveButtonText; + } + + public void setNegativeButtonText(String negativeButtonText) { + this.negativeButtonText = negativeButtonText; + } // Methods - public void updateList(LacertaFilePickerAdapterBase adapter, LibraryItemPage libraryItemPage) { + protected void updateList(LacertaFilePickerAdapterBase adapter, LibraryItemPage libraryItemPage) { int currentCount = adapter.getItemCount(); String currentDirId = adapter.getCurrentId(); if (currentDirId == null) {