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? {
|
private fun getHeader(): MangaHeaderHolder? {
|
||||||
|
if (isBindingInitialized) return null
|
||||||
|
|
||||||
return if (isTablet) {
|
return if (isTablet) {
|
||||||
binding.tabletRecycler.findViewHolderForAdapterPosition(0) as? MangaHeaderHolder
|
binding.tabletRecycler.findViewHolderForAdapterPosition(0) as? MangaHeaderHolder
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue