Skip to content

Commit f0291b2

Browse files
committed
Restore commented out code.
Fix regression from #5253
1 parent f852fb4 commit f0291b2

File tree

1 file changed

+12
-12
lines changed
  • features/viewfolder/impl/src/main/kotlin/io/element/android/features/viewfolder/impl/folder

1 file changed

+12
-12
lines changed

features/viewfolder/impl/src/main/kotlin/io/element/android/features/viewfolder/impl/folder/ViewFolderNode.kt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import io.element.android.libraries.architecture.inputs
2626
class ViewFolderNode(
2727
@Assisted buildContext: BuildContext,
2828
@Assisted plugins: List<Plugin>,
29-
// presenterFactory: ViewFolderPresenter.Factory,
29+
presenterFactory: ViewFolderPresenter.Factory,
3030
) : Node(buildContext, plugins = plugins) {
3131
data class Inputs(
3232
val canGoUp: Boolean,
@@ -40,10 +40,10 @@ class ViewFolderNode(
4040

4141
private val inputs: Inputs = inputs()
4242

43-
// private val presenter = presenterFactory.create(
44-
// canGoUp = inputs.canGoUp,
45-
// path = inputs.path,
46-
// )
43+
private val presenter = presenterFactory.create(
44+
canGoUp = inputs.canGoUp,
45+
path = inputs.path,
46+
)
4747

4848
private fun onBackClick() {
4949
plugins<Callback>().forEach { it.onBackClick() }
@@ -55,12 +55,12 @@ class ViewFolderNode(
5555

5656
@Composable
5757
override fun View(modifier: Modifier) {
58-
// val state = presenter.present()
59-
// ViewFolderView(
60-
// state = state,
61-
// modifier = modifier,
62-
// onNavigateTo = ::onNavigateTo,
63-
// onBackClick = ::onBackClick,
64-
// )
58+
val state = presenter.present()
59+
ViewFolderView(
60+
state = state,
61+
modifier = modifier,
62+
onNavigateTo = ::onNavigateTo,
63+
onBackClick = ::onBackClick,
64+
)
6565
}
6666
}

0 commit comments

Comments
 (0)