From 928f47b674d4d3e5a6828645cde59466fb42e449 Mon Sep 17 00:00:00 2001 From: Ray Ryan Date: Mon, 29 Jul 2024 10:22:00 -0700 Subject: [PATCH] Update BackStackConfig.kt wip: BREAKING: Renames `BackStackConfig.Other` to `CanGoBack` --- .../squareup/workflow1/ui/navigation/BackStackConfig.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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