We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2b9777 commit 23d8289Copy full SHA for 23d8289
1 file changed
compose/snippets/src/main/java/com/example/compose/snippets/navigation3/scenes/ScenesSnippets.kt
@@ -124,8 +124,8 @@ class ListDetailSceneStrategy<T : Any>(val windowSizeClass: WindowSizeClass) : S
124
}
125
126
val detailEntry =
127
- entries.lastOrNull()?.takeIf { it.metadata.contains(DetailKey) } ?: return null
128
- val listEntry = entries.findLast { it.metadata.contains(ListKey) } ?: return null
+ entries.lastOrNull()?.takeIf { DetailKey in it.metadata } ?: return null
+ val listEntry = entries.findLast { ListKey in it.metadata } ?: return null
129
130
// We use the list's contentKey to uniquely identify the scene.
131
// This allows the detail panes to be displayed instantly through recomposition, rather than
0 commit comments