Merge pull request #227 from TouchInstinct/add_top_padding

add top padding to fullscreen bottom sheet
This commit is contained in:
rinstance 2021-09-30 17:15:53 +03:00 committed by GitHub
commit a8df8f70c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -39,6 +39,8 @@ abstract class FullscreenBottomSheetDialog<NavArgs, State, Action, VM>(
protected lateinit var state: NavArgs
protected var bottomSheet: FrameLayout? = null
protected abstract fun injectDependencies()
@MainThread
@ -87,7 +89,7 @@ abstract class FullscreenBottomSheetDialog<NavArgs, State, Action, VM>(
override fun onStart() {
super.onStart()
val bottomSheet = dialog?.findViewById<FrameLayout>(com.google.android.material.R.id.design_bottom_sheet)
bottomSheet = dialog?.findViewById(com.google.android.material.R.id.design_bottom_sheet)
bottomSheet?.layoutParams?.height = ViewGroup.LayoutParams.MATCH_PARENT
}