mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix: Prevent lateinit crash
This commit is contained in:
parent
258708b038
commit
f37e657a9b
1 changed files with 2 additions and 0 deletions
|
@ -806,6 +806,8 @@ class MangaDetailsController :
|
|||
}
|
||||
|
||||
private fun getHeader(): MangaHeaderHolder? {
|
||||
if (isBindingInitialized) return null
|
||||
|
||||
return if (isTablet) {
|
||||
binding.tabletRecycler.findViewHolderForAdapterPosition(0) as? MangaHeaderHolder
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue