mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Added bottom padding to the library recyler view
This commit is contained in:
parent
7022cce4c2
commit
9468caeb1e
1 changed files with 1 additions and 4 deletions
|
@ -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()
|
presenter.onRestore()
|
||||||
if (presenter.libraryItems.isNotEmpty()) {
|
if (presenter.libraryItems.isNotEmpty()) {
|
||||||
presenter.restoreLibrary()
|
presenter.restoreLibrary()
|
||||||
|
@ -536,6 +532,7 @@ class LibraryController(
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setRecyclerLayout() {
|
private fun setRecyclerLayout() {
|
||||||
|
recycler.updatePaddingRelative(bottom = 50.dpToPx)
|
||||||
if (libraryLayout == 0) {
|
if (libraryLayout == 0) {
|
||||||
recycler.spanCount = 1
|
recycler.spanCount = 1
|
||||||
recycler.updatePaddingRelative(
|
recycler.updatePaddingRelative(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue