This commit is contained in:
Jays2Kings 2021-05-03 13:25:04 -04:00
parent 477f5cd856
commit 449b33d731
2 changed files with 1 additions and 4 deletions

View File

@ -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) {

View File

@ -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, _ ->