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

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