fix starting top padding of recyclers

doesn't change anything really but still
This commit is contained in:
Jays2Kings 2021-05-10 17:33:15 -04:00
parent 0099dd5523
commit 31980abf28

View File

@ -198,7 +198,8 @@ fun Controller.scrollViewWith(
var fakeBottomNavView: View? = null var fakeBottomNavView: View? = null
if (!customPadding) { if (!customPadding) {
recycler.updatePaddingRelative( recycler.updatePaddingRelative(
top = (toolbarHeight ?: 0) + appBarHeight top = (activity?.window?.decorView?.rootWindowInsets?.systemWindowInsetTop ?: 0) +
appBarHeight
) )
} }
recycler.doOnApplyWindowInsets { view, insets, _ -> recycler.doOnApplyWindowInsets { view, insets, _ ->