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

This commit is contained in:
r-ca committed 2024-01-25 14:33:49 +09:00
1 parent fd9b69174d
commit e51ce209dc
1 file changed
+3 -1
@@ -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