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.
2 parents 6bb28c4 + f432f6e commit f84eab3Copy full SHA for f84eab3
feature/creation/src/main/java/com/android/developers/androidify/creation/CreationScreen.kt
@@ -402,7 +402,7 @@ private fun MainCreationPane(
402
modifier = modifier,
403
) {
404
val spatialSpec = MaterialTheme.motionScheme.slowSpatialSpec<Float>()
405
- val pagerState = rememberPagerState(0) { PromptType.entries.size }
+ val pagerState = rememberPagerState(uiState.selectedPromptOption.ordinal) { PromptType.entries.size }
406
val focusManager = LocalFocusManager.current
407
LaunchedEffect(uiState.selectedPromptOption) {
408
launch {
0 commit comments