From 124726693ec6df5a3443c663573eac332acf29f1 Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Wed, 12 Jul 2023 20:01:33 -0600 Subject: [PATCH] list: fix incomplete scrolling in menu dialog Fix an issue where the options in MenuDialog could not full scroll for an unknown reason. Derived from some absurd issue where BottomSheetBehavior dislikes ConstraintLayout's spacing and decides to improperly allocate enough space for the RecyclerView to scroll. --- .../ViewBindingBottomSheetDialogFragment.kt | 3 - app/src/main/res/layout/dialog_menu.xml | 129 ++++++++++-------- 2 files changed, 70 insertions(+), 62 deletions(-) diff --git a/app/src/main/java/org/oxycblt/auxio/ui/ViewBindingBottomSheetDialogFragment.kt b/app/src/main/java/org/oxycblt/auxio/ui/ViewBindingBottomSheetDialogFragment.kt index 5729f2b43..3a5adce95 100644 --- a/app/src/main/java/org/oxycblt/auxio/ui/ViewBindingBottomSheetDialogFragment.kt +++ b/app/src/main/java/org/oxycblt/auxio/ui/ViewBindingBottomSheetDialogFragment.kt @@ -36,9 +36,6 @@ import org.oxycblt.auxio.util.unlikelyToBeNull * A lifecycle-aware [DialogFragment] that automatically manages the [ViewBinding] lifecycle as a * [BottomSheetDialogFragment]. * - * TODO: Debug why menu RecyclerView believes it can scroll more than it actually can in - * landscape. - * * @author Alexander Capehart (OxygenCobalt) */ abstract class ViewBindingBottomSheetDialogFragment : diff --git a/app/src/main/res/layout/dialog_menu.xml b/app/src/main/res/layout/dialog_menu.xml index 84df79fc8..b38f3938f 100644 --- a/app/src/main/res/layout/dialog_menu.xml +++ b/app/src/main/res/layout/dialog_menu.xml @@ -1,79 +1,90 @@ - - + + + android:layout_height="match_parent"> - + - + - + - + - + + + + + - - \ No newline at end of file + \ No newline at end of file