You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modalbottomsheetdialogfragment/src/main/java/com/commit451/modalbottomsheetdialogfragment/ModalBottomSheetDialogFragment.kt
?:throwIllegalStateException("You need to create this via the builder")
85
-
81
+
val arguments = checkArguments()
86
82
val optionHolders = arguments.getParcelableArrayList<OptionHolder>(KEY_OPTIONS)!!
87
83
88
84
val options = mutableListOf<Option>()
@@ -150,6 +146,12 @@ class ModalBottomSheetDialogFragment : BottomSheetDialogFragment() {
150
146
throwIllegalStateException("ModalBottomSheetDialogFragment must be attached to a parent (activity or fragment) that implements the ModalBottomSheetDialogFragment.Listener")
151
147
}
152
148
149
+
privatefuncheckArguments(): Bundle {
150
+
return arguments
151
+
?:throwIllegalStateException("You need to create this via the builder")
152
+
153
+
}
154
+
153
155
/**
154
156
* Used to build a [ModalBottomSheetDialogFragment]
155
157
*/
@@ -162,7 +164,9 @@ class ModalBottomSheetDialogFragment : BottomSheetDialogFragment() {
0 commit comments