|
|
|
|
@ -112,10 +112,10 @@ open class BottomSheetFragment : BottomSheetDialogFragment() { |
|
|
|
|
private fun initModel() { |
|
|
|
|
|
|
|
|
|
val row = config?.row |
|
|
|
|
?: (requireActivity() as? BaseActivity)?.bottomSheetViewModel?.rowRepresentable |
|
|
|
|
?: (activity as? BaseActivity)?.bottomSheetViewModel?.rowRepresentable |
|
|
|
|
?: throw PAIllegalStateException("row not found") |
|
|
|
|
val delegate = config?.delegate |
|
|
|
|
?: (requireActivity() as? BaseActivity)?.bottomSheetViewModel?.delegate |
|
|
|
|
?: (activity as? BaseActivity)?.bottomSheetViewModel?.delegate |
|
|
|
|
?: throw PAIllegalStateException("delegate not found") |
|
|
|
|
|
|
|
|
|
val factory = BottomSheetViewModelFactory(row, delegate) |
|
|
|
|
|