From 6e98294147aca14a280283b21f9e2c0829027d40 Mon Sep 17 00:00:00 2001 From: Naveen Singh Date: Thu, 26 Sep 2024 11:02:12 +0530 Subject: [PATCH] Expand playback speed bottom sheet by default --- .../org/fossify/gallery/fragments/PlaybackSpeedFragment.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/kotlin/org/fossify/gallery/fragments/PlaybackSpeedFragment.kt b/app/src/main/kotlin/org/fossify/gallery/fragments/PlaybackSpeedFragment.kt index 98805e744..1141fa0cd 100644 --- a/app/src/main/kotlin/org/fossify/gallery/fragments/PlaybackSpeedFragment.kt +++ b/app/src/main/kotlin/org/fossify/gallery/fragments/PlaybackSpeedFragment.kt @@ -6,6 +6,8 @@ import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.core.content.res.ResourcesCompat +import com.google.android.material.bottomsheet.BottomSheetBehavior +import com.google.android.material.bottomsheet.BottomSheetDialog import com.google.android.material.bottomsheet.BottomSheetDialogFragment import org.fossify.commons.extensions.* import org.fossify.commons.views.MySeekBar @@ -49,6 +51,7 @@ class PlaybackSpeedFragment : BottomSheetDialogFragment() { initSeekbar(playbackSpeedSeekbar, playbackSpeedLabel, config) } + (dialog as? BottomSheetDialog)?.behavior?.state = BottomSheetBehavior.STATE_EXPANDED return binding.root }