mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
クラス変数とSetterをBaseに移動
This commit is contained in:
parent
7a106b1ed3
commit
1654700ee0
|
@ -21,16 +21,34 @@ import one.nem.lacerta.utils.FeatureSwitch;
|
||||||
import one.nem.lacerta.utils.LacertaLogger;
|
import one.nem.lacerta.utils.LacertaLogger;
|
||||||
|
|
||||||
public class LacertaFilePickerDialogBase extends DialogFragment {
|
public class LacertaFilePickerDialogBase extends DialogFragment {
|
||||||
|
|
||||||
@Inject
|
|
||||||
LacertaLibrary lacertaLibrary;
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
LacertaLogger logger;
|
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
|
// Methods
|
||||||
public void updateList(LacertaFilePickerAdapterBase adapter, LibraryItemPage libraryItemPage) {
|
protected void updateList(LacertaFilePickerAdapterBase adapter, LibraryItemPage libraryItemPage) {
|
||||||
int currentCount = adapter.getItemCount();
|
int currentCount = adapter.getItemCount();
|
||||||
String currentDirId = adapter.getCurrentId();
|
String currentDirId = adapter.getCurrentId();
|
||||||
if (currentDirId == null) {
|
if (currentDirId == null) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user