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) customTitle = view.context?.getString(R.string.loading)
setTitle() setTitle()
} }
binding.recycler.post {
binding.recycler.scrollToPosition(0)
}
} }
override fun onDestroyView(view: View) { override fun onDestroyView(view: View) {

View File

@ -198,7 +198,7 @@ fun Controller.scrollViewWith(
var fakeBottomNavView: View? = null var fakeBottomNavView: View? = null
if (!customPadding) { if (!customPadding) {
recycler.updatePaddingRelative( recycler.updatePaddingRelative(
top = activityBinding!!.toolbar.y.toInt() + appBarHeight top = (toolbarHeight ?: 0) + appBarHeight
) )
} }
recycler.doOnApplyWindowInsets { view, insets, _ -> recycler.doOnApplyWindowInsets { view, insets, _ ->