Skip to content

Commit

Permalink
Remove FragmentDelegate.onNewFragment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laimiux committed Oct 14, 2024
1 parent 21955e6 commit ba02cda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,9 @@ class FormulaFragment : Fragment(), BaseFormulaFragment<Any> {

@JvmStatic
fun newInstance(key: FragmentKey): FormulaFragment {
val fragment = FormulaFragment()
fragment.getOrSetArguments().apply {
putParcelable(ARG_CONTRACT, key)
return FormulaFragment().apply {
getOrSetArguments().putParcelable(ARG_CONTRACT, key)
}
FormulaAndroid.fragmentEnvironment().fragmentDelegate.onNewInstance(
fragmentId = fragment.formulaFragmentId
)
return fragment
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ data class FragmentEnvironment(
*/
open class FragmentDelegate {

/**
* Called when new instance of [FormulaFragment] is created.
*/
open fun onNewInstance(
fragmentId: FragmentId
) = Unit

/**
* Instantiates the feature.
*/
Expand Down

0 comments on commit ba02cda

Please sign in to comment.