File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
app/src/main/java/com/wafflestudio/siksha2/ui/main/restaurant Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,7 @@ class FilterDialogFragment(
4848
4949 dialog.setOnShowListener {
5050 val bottomSheet = (dialog as BottomSheetDialog ).findViewById<View >(com.google.android.material.R .id.design_bottom_sheet) as FrameLayout
51- val behavior = BottomSheetBehavior .from(bottomSheet)
52-
51+ dialog.behavior.setState(BottomSheetBehavior .STATE_EXPANDED )
5352 bottomSheet.let {
5453 val layoutParams = it.layoutParams
5554 it.layoutParams = layoutParams
@@ -68,9 +67,6 @@ class FilterDialogFragment(
6867 super .onViewCreated(view, savedInstanceState)
6968
7069 setupScrollViewParams()
71- val bottomSheet = view.parent as View
72- val behavior = BottomSheetBehavior .from(bottomSheet)
73- behavior.state = BottomSheetBehavior .STATE_EXPANDED
7470
7571 setupVisibility()
7672 setupObservers()
You can’t perform that action at this time.
0 commit comments