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

(cherry picked from commit 84e023607c9cdd8e4252600bbeba7d86720d0a4b)
This commit is contained in:
Ivan Iskandar 2021-04-11 21:49:23 +07:00 committed by Jobobby04
parent a45e273e2c
commit 1c67e82325

View File

@ -380,16 +380,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