Added bottom padding to the library recyler view

This commit is contained in:
Jay 2020-05-07 02:55:04 -04:00
parent 7022cce4c2
commit 9468caeb1e

View File

@ -416,10 +416,6 @@ class LibraryController(
}
}
// pad the recycler if the filter bottom sheet is visible
val height = view.context.resources.getDimensionPixelSize(R.dimen.rounder_radius) + 4.dpToPx
recycler.updatePaddingRelative(bottom = height)
presenter.onRestore()
if (presenter.libraryItems.isNotEmpty()) {
presenter.restoreLibrary()
@ -536,6 +532,7 @@ class LibraryController(
}
private fun setRecyclerLayout() {
recycler.updatePaddingRelative(bottom = 50.dpToPx)
if (libraryLayout == 0) {
recycler.spanCount = 1
recycler.updatePaddingRelative(