Skip to content

Commit

Permalink
Code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscgdev committed Sep 23, 2020
1 parent 8cbde9c commit d921def
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ class DialogSheet(private val context: Context, private var useNewStyle: Boolean
posButtonTextColor = getTextColor(accentColor)
} else bottomSheetDialog = ExpandedBottomSheetDialog(context, R.style.DialogSheetTheme)

bottomSheetDialog?.setContentView(if (useNewStyle) R.layout.layout_bottom_sheet_v2 else R.layout.layout_bottom_sheet)
bottomSheetDialog?.setContentView(if (useNewStyle) R.layout.layout_dialog_sheet_v2 else R.layout.layout_dialog_sheet)

if (bottomSheetDialog?.window != null)
bottomSheetDialog?.window?.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal">

<include layout="@layout/layout_bottom_sheet_content"/>
<include layout="@layout/layout_dialog_sheet_content"/>

</FrameLayout>
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal">

<include layout="@layout/layout_bottom_sheet_content_v2"/>
<include layout="@layout/layout_dialog_sheet_content_v2"/>

</FrameLayout>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">

<include layout="@layout/layout_bottom_sheet_content"/>
<include layout="@layout/layout_dialog_sheet_content"/>

</FrameLayout>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">

<include layout="@layout/layout_bottom_sheet_content_v2"/>
<include layout="@layout/layout_dialog_sheet_content_v2"/>

</FrameLayout>

0 comments on commit d921def

Please sign in to comment.