From bf3cba380f260f92a83bbc9db3c45e3e6396a8d7 Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Sat, 24 Apr 2021 04:11:36 -0400 Subject: [PATCH] Fix layout of options in library filter sheet --- .../eu/kanade/tachiyomi/ui/library/filter/FilterBottomSheet.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/filter/FilterBottomSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/filter/FilterBottomSheet.kt index 354b57d437..91440be7a1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/filter/FilterBottomSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/filter/FilterBottomSheet.kt @@ -158,7 +158,7 @@ class FilterBottomSheet @JvmOverloads constructor(context: Context, attrs: Attri ) shadow.alpha = if (sheetBehavior.isHidden()) 0f else 1f - if (binding.secondLayout.width + binding.firstLayout.width + 20.dpToPx < width) { + if (binding.secondLayout.width + (binding.groupBy.width * 2) + 20.dpToPx < width) { binding.secondLayout.removeView(binding.viewOptions) binding.firstLayout.addView(binding.viewOptions) binding.secondLayout.isVisible = false