From d03ee809d0f54c1a856f9c0d5a1ebe378a1cc093 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 25 Aug 2023 19:15:56 +0200 Subject: [PATCH] fix: chapter layout UI and UX issues --- .../java/com/github/libretube/ui/fragments/PlayerFragment.kt | 1 + app/src/main/res/layout/bottom_sheet.xml | 3 ++- app/src/main/res/layout/chapters_row.xml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt index e5a7f0213..416fe541d 100644 --- a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt @@ -325,6 +325,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions { binding.player.hideController() binding.player.useController = false commentsViewModel.setCommentSheetExpand(false) + chaptersBottomSheet?.dismiss() transitionEndId = endId transitionStartId = startId } diff --git a/app/src/main/res/layout/bottom_sheet.xml b/app/src/main/res/layout/bottom_sheet.xml index e446e7800..4dab7eb3f 100644 --- a/app/src/main/res/layout/bottom_sheet.xml +++ b/app/src/main/res/layout/bottom_sheet.xml @@ -28,7 +28,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:paddingBottom="16dp" + android:paddingBottom="12dp" android:visibility="gone">