name: Read and update data using Room issue template.
about: Github code and Codelab code do not match
title: Read and update data using Room
labels: ''
assignees: ''
URL of codelab:
https://developer.android.com/codelabs/basic-android-kotlin-compose-update-data-room#5
Specify the language of the codelab if it is not English:
In which task and step of the codelab can this issue be found?
Task 11 of 6 Display item details
Describe the problem
Code provided in the task 11 says:
"In the ItemDetailsScreen() composable, update the ItemDetailsBody() function call and pass in uiState.value to itemUiState argument."
Then the code shown is:
ItemDetailsBody(
itemUiState = uiState.value,
onSellItem = { },
onDelete = { },
modifier = modifier.padding(innerPadding)
)
But the github code for the ItemDetailsBody function does not match the first parameter:
ItemDetailsBody(
itemDetailsUiState = uiState.value,
I believe 'itemUiState' in the codelab should actually be 'itemDetailsUiState'
Steps to reproduce?
Do the codelab, get to step 6, task 11.
Versions
Not applicable.
name: Read and update data using Room issue template.
about: Github code and Codelab code do not match
title: Read and update data using Room
labels: ''
assignees: ''
URL of codelab:
https://developer.android.com/codelabs/basic-android-kotlin-compose-update-data-room#5
Specify the language of the codelab if it is not English:
In which task and step of the codelab can this issue be found?
Task 11 of 6 Display item details
Describe the problem
Code provided in the task 11 says:
"In the ItemDetailsScreen() composable, update the ItemDetailsBody() function call and pass in uiState.value to itemUiState argument."
Then the code shown is:
ItemDetailsBody(
itemUiState = uiState.value,
onSellItem = { },
onDelete = { },
modifier = modifier.padding(innerPadding)
)
But the github code for the ItemDetailsBody function does not match the first parameter:
ItemDetailsBody(
itemDetailsUiState = uiState.value,
I believe 'itemUiState' in the codelab should actually be 'itemDetailsUiState'
Steps to reproduce?
Do the codelab, get to step 6, task 11.
Versions
Not applicable.