From 51838482507aece7ed660a9a7bb693ba3014515d Mon Sep 17 00:00:00 2001 From: arkon Date: Fri, 10 Apr 2020 15:00:56 -0400 Subject: [PATCH] Add padding for catalogue filter FAB --- .../ui/catalogue/browse/BrowseCatalogueController.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/browse/BrowseCatalogueController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/browse/BrowseCatalogueController.kt index 5a65b9a7e..1b360ccbc 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/browse/BrowseCatalogueController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/browse/BrowseCatalogueController.kt @@ -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