File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
workflow-ui/compose/src/main/java/com/squareup/workflow1/ui/compose Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import androidx.compose.runtime.CompositionLocalProvider
10
10
import androidx.compose.runtime.remember
11
11
import androidx.compose.ui.platform.ComposeView
12
12
import androidx.compose.ui.platform.LocalLifecycleOwner
13
- import androidx.compose.ui.platform.ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed
14
13
import androidx.compose.ui.viewinterop.AndroidView
15
14
import androidx.lifecycle.setViewTreeLifecycleOwner
16
15
import com.squareup.workflow1.ui.Screen
@@ -126,7 +125,6 @@ public fun <ScreenT : Screen> ScreenComposableFactory<ScreenT>.asViewFactory():
126
125
container : ViewGroup ?
127
126
): ScreenViewHolder <ScreenT > {
128
127
val view = ComposeView (context)
129
- view.setViewCompositionStrategy(DisposeOnViewTreeLifecycleDestroyed )
130
128
return ScreenViewHolder (initialEnvironment, view) { newRendering, environment ->
131
129
132
130
// Update the state whenever a new rendering is emitted.
You can’t perform that action at this time.
0 commit comments