From 892e8ce43d0a13a5595d3f59911c9e8319969b73 Mon Sep 17 00:00:00 2001 From: Laimonas Turauskas Date: Tue, 12 Dec 2023 11:34:48 -0800 Subject: [PATCH] Make FragmentDelegate functions open. --- .../com/instacart/formula/android/FragmentEnvironment.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/formula-android/src/main/java/com/instacart/formula/android/FragmentEnvironment.kt b/formula-android/src/main/java/com/instacart/formula/android/FragmentEnvironment.kt index d416397c..a44f468b 100644 --- a/formula-android/src/main/java/com/instacart/formula/android/FragmentEnvironment.kt +++ b/formula-android/src/main/java/com/instacart/formula/android/FragmentEnvironment.kt @@ -17,7 +17,7 @@ data class FragmentEnvironment( /** * Instantiates the feature. */ - fun initializeFeature( + open fun initializeFeature( fragmentId: FragmentId, factory: FeatureFactory, dependencies: DependenciesT, @@ -29,7 +29,7 @@ data class FragmentEnvironment( /** * Called from [FormulaFragment.onCreateView] to instantiate the view. */ - fun createView( + open fun createView( fragmentId: FragmentId, viewFactory: ViewFactory, inflater: LayoutInflater, @@ -41,7 +41,7 @@ data class FragmentEnvironment( /** * Called when we are ready to apply [output] to the view. */ - fun setOutput(fragmentId: FragmentId, output: Any, applyOutputToView: (Any) -> Unit) { + open fun setOutput(fragmentId: FragmentId, output: Any, applyOutputToView: (Any) -> Unit) { applyOutputToView(output) } @@ -49,6 +49,6 @@ data class FragmentEnvironment( * Called after first render model is rendered. The [durationInMillis] starts * when formula fragment is initialized and ends after first render model is applied. */ - fun onFirstModelRendered(fragmentId: FragmentId, durationInMillis: Long) = Unit + open fun onFirstModelRendered(fragmentId: FragmentId, durationInMillis: Long) = Unit } }