diff --git a/workflow-ui/core-common/src/main/java/com/squareup/workflow1/ui/navigation/BackStackConfig.kt b/workflow-ui/core-common/src/main/java/com/squareup/workflow1/ui/navigation/BackStackConfig.kt index 28702b9186..5d8a2049cc 100644 --- a/workflow-ui/core-common/src/main/java/com/squareup/workflow1/ui/navigation/BackStackConfig.kt +++ b/workflow-ui/core-common/src/main/java/com/squareup/workflow1/ui/navigation/BackStackConfig.kt @@ -3,12 +3,12 @@ package com.squareup.workflow1.ui.navigation import com.squareup.workflow1.ui.ViewEnvironment import com.squareup.workflow1.ui.ViewEnvironmentKey import com.squareup.workflow1.ui.WorkflowUiExperimentalApi -import com.squareup.workflow1.ui.navigation.BackStackConfig.First -import com.squareup.workflow1.ui.navigation.BackStackConfig.Other /** * Informs views whether they're children of a [BackStackScreen], - * and if so whether they're the [first frame][First] or [not][Other]. + * and if so whether they're the + * [first frame][com.squareup.workflow1.ui.navigation.BackStackConfig.First] + * or [not][com.squareup.workflow1.ui.navigation.BackStackConfig.CanGoBack]. */ @WorkflowUiExperimentalApi public enum class BackStackConfig { @@ -27,7 +27,7 @@ public enum class BackStackConfig { * This rendering is in a [BackStackScreen] but is not the first frame. * Useful as a hint to enable "go back" behavior. */ - Other; + CanGoBack; public companion object : ViewEnvironmentKey() { override val default: BackStackConfig = None