Skip to content

Commit

Permalink
Update BackStackConfig.kt
Browse files Browse the repository at this point in the history
wip: BREAKING: Renames `BackStackConfig.Other` to `CanGoBack`
  • Loading branch information
rjrjr authored Jul 29, 2024
1 parent 040ece4 commit 928f47b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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<BackStackConfig>() {
override val default: BackStackConfig = None
Expand Down

0 comments on commit 928f47b

Please sign in to comment.