mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fixed #781
This commit is contained in:
parent
477f5cd856
commit
449b33d731
2 changed files with 1 additions and 4 deletions
|
@ -193,9 +193,6 @@ open class GlobalSearchController(
|
|||
customTitle = view.context?.getString(R.string.loading)
|
||||
setTitle()
|
||||
}
|
||||
binding.recycler.post {
|
||||
binding.recycler.scrollToPosition(0)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onDestroyView(view: View) {
|
||||
|
|
|
@ -198,7 +198,7 @@ fun Controller.scrollViewWith(
|
|||
var fakeBottomNavView: View? = null
|
||||
if (!customPadding) {
|
||||
recycler.updatePaddingRelative(
|
||||
top = activityBinding!!.toolbar.y.toInt() + appBarHeight
|
||||
top = (toolbarHeight ?: 0) + appBarHeight
|
||||
)
|
||||
}
|
||||
recycler.doOnApplyWindowInsets { view, insets, _ ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue