Skip to content

Commit c8e0b29

Browse files
authored
Merge pull request #1315 from square/ray/nav-monitor-tweak
Tweak to default `onNavigate()`
2 parents ee4f864 + 4bd8624 commit c8e0b29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workflow-ui/core-common/src/main/java/com/squareup/workflow1/ui/navigation/NavigationMonitor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import kotlinx.coroutines.flow.onEach
1919
*/
2020
public class NavigationMonitor(
2121
skipFirstScreen: Boolean = false,
22-
private val onNavigate: (Any) -> Unit = { println(it) }
22+
private val onNavigate: (Any) -> Unit = { println(Compatible.keyFor(it)) }
2323
) {
2424
@Volatile
2525
private var lastKey: String? = if (skipFirstScreen) null else ""

0 commit comments

Comments
 (0)