BrowseSourceController: Fix navigation bar insets not properly applied (#4810)

This commit is contained in:
Ivan Iskandar 2021-04-11 21:49:23 +07:00 committed by GitHub
parent f145fd0dec
commit 84e023607c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -238,16 +238,16 @@ open class BrowseSourceController(bundle: Bundle) :
if (filterSheet != null) {
// Add bottom padding if filter FAB is visible
recycler.updatePadding(bottom = view.resources.getDimensionPixelOffset(R.dimen.fab_list_padding))
recycler.applyInsetter {
type(navigationBars = true) {
padding()
}
}
recycler.clipToPadding = false
actionFab?.shrinkOnScroll(recycler)
}
recycler.applyInsetter {
type(navigationBars = true) {
padding()
}
}
recycler.setHasFixedSize(true)
recycler.adapter = adapter