mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-09 19:55:11 +01:00
Fix crash in Controller extensions
This commit is contained in:
parent
6b8e4eeb14
commit
e0c77abe1c
@ -118,7 +118,7 @@ fun Controller.scrollViewWith(
|
||||
val attrsArray = intArrayOf(R.attr.actionBarSize)
|
||||
val array = recycler.context.obtainStyledAttributes(attrsArray)
|
||||
var appBarHeight = (
|
||||
if (activityBinding!!.toolbar.height > 0) activityBinding!!.toolbar.height
|
||||
if (activityBinding?.toolbar?.height ?: 0 > 0) activityBinding!!.toolbar.height
|
||||
else array.getDimensionPixelSize(0, 0)
|
||||
) + if (includeTabView) tabBarHeight else 0
|
||||
array.recycle()
|
||||
|
Loading…
Reference in New Issue
Block a user