クラス変数とSetterをBaseに移動

This commit is contained in:
r-ca 2024-01-28 10:11:26 +09:00
parent 7a106b1ed3
commit 1654700ee0
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -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) {