mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-09 19:55:11 +01:00
Fix layout of options in library filter sheet
This commit is contained in:
parent
9e813f773b
commit
bf3cba380f
@ -158,7 +158,7 @@ class FilterBottomSheet @JvmOverloads constructor(context: Context, attrs: Attri
|
|||||||
)
|
)
|
||||||
shadow.alpha = if (sheetBehavior.isHidden()) 0f else 1f
|
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.secondLayout.removeView(binding.viewOptions)
|
||||||
binding.firstLayout.addView(binding.viewOptions)
|
binding.firstLayout.addView(binding.viewOptions)
|
||||||
binding.secondLayout.isVisible = false
|
binding.secondLayout.isVisible = false
|
||||||
|
Loading…
Reference in New Issue
Block a user