You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In which task and step of the codelab can this issue be found? --> N/A
Describe the problem
I discovered at this section of the CodeLab that the code provided had a small - what I think to be - mistake.
In the SummaryScreen file when declaring the "orderSummary" variable, it came this way:
//Load and format a string resource with the parameters.
val orderSummary = stringResource(
R.string.order_details,
numberOfCupcakes,
orderUiState.flavor,
orderUiState.date,
orderUiState.quantity
However when the app submits this to the intent you don't need the Quantity sent twice since thats being done by "numberOfCupcakes"
I believe it should've been set to price
//Load and format a string resource with the parameters.
val orderSummary = stringResource(
R.string.order_details,
numberOfCupcakes,
orderUiState.flavor,
orderUiState.date,
orderUiState.price
This is also present in the solution code.
Steps to reproduce? --> N/A
Go to...
Click on...
See error...
Versions --> N/A Android Studio version: API version of the emulator:
The text was updated successfully, but these errors were encountered:
URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-compose-navigation?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-4-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-navigation#5
In which task and step of the codelab can this issue be found? --> N/A
Describe the problem
I discovered at this section of the CodeLab that the code provided had a small - what I think to be - mistake.
In the SummaryScreen file when declaring the "orderSummary" variable, it came this way:
//Load and format a string resource with the parameters.
val orderSummary = stringResource(
R.string.order_details,
numberOfCupcakes,
orderUiState.flavor,
orderUiState.date,
orderUiState.quantity
However when the app submits this to the intent you don't need the Quantity sent twice since thats being done by "numberOfCupcakes"
I believe it should've been set to price
//Load and format a string resource with the parameters.
val orderSummary = stringResource(
R.string.order_details,
numberOfCupcakes,
orderUiState.flavor,
orderUiState.date,
orderUiState.price
This is also present in the solution code.
Steps to reproduce? --> N/A
Versions --> N/A
Android Studio version:
API version of the emulator:
The text was updated successfully, but these errors were encountered: