Open Matt-Haywood opened 9 months ago
URL of codelab: https://developer.android.com/codelabs/basic-android-kotlin-compose-getting-data-internet?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-5-pathway-1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-getting-data-internet#7
Specify the language of the codelab if it is not English:
English
In which task and step of the codelab can this issue be found? Task 8 step 7
Describe the problem
If you hoisted the marsUiState out of the try statement, then the code supplied in step 7 is wrong and needs to be:
val listResult = MarsApi.retrofitService.getPhotos() MarsUiState.Success( "Success: ${listResult.size} Mars photos retrieved" )
URL of codelab: https://developer.android.com/codelabs/basic-android-kotlin-compose-getting-data-internet?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-5-pathway-1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-getting-data-internet#7
Specify the language of the codelab if it is not English:
English
In which task and step of the codelab can this issue be found? Task 8 step 7
Describe the problem
If you hoisted the marsUiState out of the try statement, then the code supplied in step 7 is wrong and needs to be:
val listResult = MarsApi.retrofitService.getPhotos() MarsUiState.Success( "Success: ${listResult.size} Mars photos retrieved" )