Skip to content

Commit

Permalink
fix: Prevent lateinit crash
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Jan 13, 2025
1 parent 258708b commit f37e657
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,8 @@ class MangaDetailsController :
}

private fun getHeader(): MangaHeaderHolder? {
if (isBindingInitialized) return null

return if (isTablet) {
binding.tabletRecycler.findViewHolderForAdapterPosition(0) as? MangaHeaderHolder
} else {
Expand Down

0 comments on commit f37e657

Please sign in to comment.