Update metro to v0.11.0 (#6245)
* Update metro to v0.11.0 * Fix `@AssistedInject` usages Now the injected variables in the factories must match the names in the constructors --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jorge Martín <jorgem@element.io>
This commit is contained in:
@@ -41,7 +41,7 @@ class CreatePollNode(
|
||||
private var isNavigatingUp = AtomicBoolean(false)
|
||||
|
||||
private val presenter = presenterFactory.create(
|
||||
backNavigator = {
|
||||
navigateUp = {
|
||||
if (isNavigatingUp.compareAndSet(false, true)) {
|
||||
navigateUp()
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ class CreatePollPresenter(
|
||||
fun interface Factory {
|
||||
fun create(
|
||||
timelineMode: Timeline.Mode,
|
||||
backNavigator: () -> Unit,
|
||||
navigateUp: () -> Unit,
|
||||
mode: CreatePollMode
|
||||
): CreatePollPresenter
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user