mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
PublicPathの生成ロジックを変更
This commit is contained in:
parent
13e8ee7d87
commit
4d7f38a0f7
|
@ -7,6 +7,7 @@ import androidx.fragment.app.DialogFragment;
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
|
||||||
import one.nem.lacerta.model.LibraryItemPage;
|
import one.nem.lacerta.model.LibraryItemPage;
|
||||||
|
import one.nem.lacerta.model.ListItemType;
|
||||||
import one.nem.lacerta.model.PublicPath;
|
import one.nem.lacerta.model.PublicPath;
|
||||||
import one.nem.lacerta.utils.LacertaLogger;
|
import one.nem.lacerta.utils.LacertaLogger;
|
||||||
|
|
||||||
|
@ -43,13 +44,17 @@ public class LacertaFilePickerDialogBase extends DialogFragment {
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
|
|
||||||
protected void updatePathTextView(TextView currentDirTextView, PublicPath publicPath) {
|
protected void updatePathTextView(TextView currentDirTextView, PublicPath publicPath, ListItemType listItemType) {
|
||||||
if (publicPath == null) {
|
if (publicPath == null) {
|
||||||
currentDirTextView.setText("/");
|
currentDirTextView.setText("/");
|
||||||
|
} else {
|
||||||
|
if (listItemType == ListItemType.ITEM_TYPE_FOLDER) {
|
||||||
|
currentDirTextView.setText("/" + publicPath.getStringPath()); // TODO-rca: PublicPath側の実装を治すべき
|
||||||
} else {
|
} else {
|
||||||
currentDirTextView.setText("/" + publicPath.parent().getStringPath()); // TODO-rca: PublicPath側の実装を治すべき
|
currentDirTextView.setText("/" + publicPath.parent().getStringPath()); // TODO-rca: PublicPath側の実装を治すべき
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
protected void updateListView(LacertaFilePickerAdapterBase adapter, LibraryItemPage libraryItemPage, int currentCount, String currentDirId) {
|
protected void updateListView(LacertaFilePickerAdapterBase adapter, LibraryItemPage libraryItemPage, int currentCount, String currentDirId) {
|
||||||
if (currentCount == 0) {
|
if (currentCount == 0) {
|
||||||
// 初回表示
|
// 初回表示
|
||||||
|
|
Loading…
Reference in New Issue
Block a user