Skip to content
Snippets Groups Projects
Commit 5f6c69b9 authored by rahul-gill's avatar rahul-gill Committed by Duncan McNamara
Browse files

skip half expanded video control settings sheet

parent fae8d1f0
No related branches found
No related tags found
1 merge request!1759fix: #2982 skip half expanded video control settings sheet
Pipeline #361854 passed with stage
in 4 minutes and 52 seconds
......@@ -4,6 +4,7 @@ import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.google.android.material.bottomsheet.BottomSheetBehavior
import com.google.android.material.bottomsheet.BottomSheetBehavior.STATE_EXPANDED
import org.videolan.vlc.R
import org.videolan.vlc.databinding.DialogVideoControlsSettingsBinding
......@@ -23,4 +24,9 @@ class VideoControlsSettingsDialog : VLCBottomSheetDialogFragment() {
binding = DialogVideoControlsSettingsBinding.inflate(layoutInflater, container, false)
return binding.root
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
BottomSheetBehavior.from(view.parent as View).skipCollapsed = true
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment