Skip to content

Commit

Permalink
Address PR issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
io7m committed Nov 7, 2023
1 parent 1aeb868 commit 218fd37
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ class CatalogBookDetailFragment : Fragment(R.layout.book_detail) {
this.onBookStatusHeld(status, bookPreviewStatus)
}
is BookStatus.Loaned -> {
this.onBookStatusLoaned(status, book.book, bookPreviewStatus)
this.onBookStatusLoaned(status, book.book)
}
is BookStatus.Holdable -> {
this.onBookStatusHoldable(status, bookPreviewStatus)
Expand Down Expand Up @@ -825,8 +825,7 @@ class CatalogBookDetailFragment : Fragment(R.layout.book_detail) {

private fun onBookStatusLoaned(
bookStatus: BookStatus.Loaned,
book: Book,
bookPreviewStatus: BookPreviewStatus
book: Book
) {
this.buttons.removeAllViews()

Expand Down Expand Up @@ -895,6 +894,9 @@ class CatalogBookDetailFragment : Fragment(R.layout.book_detail) {
}
)
)
} else {
this.buttons.addView(this.buttonCreator.createButtonSizedSpace(), 0)
this.buttons.addView(this.buttonCreator.createButtonSizedSpace())
}

this.checkButtonViewCount()
Expand Down

0 comments on commit 218fd37

Please sign in to comment.