[Android] skip half expanded video control settings sheet
Rahul Gill
git at videolan.org
Tue Jul 11 07:36:10 UTC 2023
vlc-android | branch: master | Rahul Gill <rgill1 at protonmail.com> | Sat Jul 8 18:31:38 2023 +0530| [5f6c69b91da3a6d2bf9424bf7405c30c500fe79f] | committer: Duncan McNamara
skip half expanded video control settings sheet
> https://code.videolan.org/videolan/vlc-android/commit/5f6c69b91da3a6d2bf9424bf7405c30c500fe79f
---
.../src/org/videolan/vlc/gui/dialogs/VideoControlsSettingsDialog.kt | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/dialogs/VideoControlsSettingsDialog.kt b/application/vlc-android/src/org/videolan/vlc/gui/dialogs/VideoControlsSettingsDialog.kt
index 289f41632d..581997d18b 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/dialogs/VideoControlsSettingsDialog.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/dialogs/VideoControlsSettingsDialog.kt
@@ -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
+ }
}
More information about the Android
mailing list