google-developer-training / android-basics-kotlin-mars-photos-app

Apache License 2.0
91 stars 193 forks source link

Android Basics: Load and display images from the Internet #165

Closed magicronn closed 8 months ago

magicronn commented 1 year ago

name: Android Basics Unit 4 issue about: Report problems with the Android Basics Unit 4 codelabs title: 'Android Basics Unit 4 issue:' labels: '' assignees: ''


URL of codelab https://developer.android.com/codelabs/basic-android-kotlin-training-internet-images?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-4-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-internet-images#4

In which task and step of the codelab can this issue be found? Add a binding adapter for the status ImageView

Describe the problem The status:MarsApiStatus is nullable in the codelab, but the when block given is not exhaustive. The solution shows it as not-nullable which is correct given the view model has a non-nullable _status.

So, the correct signature would be as in the solution code.

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions Android Studio version: API version of the emulator:

Additional information Include screenshots if they would be useful in clarifying the problem.