Expand playback speed bottom sheet by default

This commit is contained in:
Naveen Singh 2024-09-26 11:02:12 +05:30
parent 2caa178417
commit 6e98294147
No known key found for this signature in database
GPG key ID: AF5D43C216778C0B

View file

@ -6,6 +6,8 @@ import android.view.LayoutInflater
import android.view.View import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
import androidx.core.content.res.ResourcesCompat 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 com.google.android.material.bottomsheet.BottomSheetDialogFragment
import org.fossify.commons.extensions.* import org.fossify.commons.extensions.*
import org.fossify.commons.views.MySeekBar import org.fossify.commons.views.MySeekBar
@ -49,6 +51,7 @@ class PlaybackSpeedFragment : BottomSheetDialogFragment() {
initSeekbar(playbackSpeedSeekbar, playbackSpeedLabel, config) initSeekbar(playbackSpeedSeekbar, playbackSpeedLabel, config)
} }
(dialog as? BottomSheetDialog)?.behavior?.state = BottomSheetBehavior.STATE_EXPANDED
return binding.root return binding.root
} }