This commit is contained in:
Benoit Marty 2021-11-19 16:42:56 +01:00
parent eb32fd95e4
commit 909e93b6d6

View file

@ -214,14 +214,10 @@ class BootstrapBottomSheet : VectorBaseBottomSheetDialogFragment<BottomSheetBoot
companion object { companion object {
const val EXTRA_ARGS = "EXTRA_ARGS"
fun show(fragmentManager: FragmentManager, mode: SetupMode): BootstrapBottomSheet { fun show(fragmentManager: FragmentManager, mode: SetupMode): BootstrapBottomSheet {
return BootstrapBottomSheet().apply { return BootstrapBottomSheet().apply {
isCancelable = false isCancelable = false
arguments = Bundle().apply { setArguments(Args(setUpMode = mode))
this.putParcelable(EXTRA_ARGS, Args(setUpMode = mode))
}
}.also { }.also {
it.show(fragmentManager, "BootstrapBottomSheet") it.show(fragmentManager, "BootstrapBottomSheet")
} }