ルートの場合は戻るボタンを表示しないように

This commit is contained in:
ろむねこ 2024-01-25 14:33:49 +09:00
parent fd9b69174d
commit e51ce209dc
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -28,8 +28,10 @@ public class SelectDirDialogItemAdapter extends RecyclerView.Adapter<SelectDirDi
public void setListItems(LibraryItemPage libraryItemPage) { public void setListItems(LibraryItemPage libraryItemPage) {
this.libraryItemPage = libraryItemPage; this.libraryItemPage = libraryItemPage;
if (this.libraryItemPage.getPageId() != null) { // ルートディレクトリの場合は戻るボタンを表示しない
this.libraryItemPage.getListItems().add(0, new ListItem("戻る", " ", ListItemType.ITEM_TYPE_ACTION_BACK, null)); this.libraryItemPage.getListItems().add(0, new ListItem("戻る", " ", ListItemType.ITEM_TYPE_ACTION_BACK, null));
} }
}
@NonNull @NonNull
@Override @Override