mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-26 23:28:58 +03:00
Add padding for catalogue filter FAB
This commit is contained in:
parent
69af1baf7a
commit
5183848250
1 changed files with 12 additions and 0 deletions
|
@ -202,6 +202,18 @@ open class BrowseCatalogueController(bundle: Bundle) :
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Add bottom padding if filter FAB is visible
|
||||
if (presenter.sourceFilters.isNotEmpty()) {
|
||||
recycler.setPadding(
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
view.resources.getDimensionPixelOffset(R.dimen.fab_list_padding)
|
||||
)
|
||||
recycler.clipToPadding = false
|
||||
}
|
||||
|
||||
recycler.setHasFixedSize(true)
|
||||
recycler.adapter = adapter
|
||||
|
||||
|
|
Loading…
Reference in a new issue