Open incon opened 8 months ago
URL of codelab In which task and step of the codelab can this issue be found? https://developer.android.com/codelabs/basic-android-kotlin-compose-using-state?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-2-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-using-state#8
Describe the problem val amount = amountInput.toDoubleOrNull() ?: 0.0 Should be val amount = amountInput.value.toDoubleOrNull() ?: 0.0
val amount = amountInput.toDoubleOrNull() ?: 0.0
val amount = amountInput.value.toDoubleOrNull() ?: 0.0
Steps to reproduce?
Versions Android Studio version: API version of the emulator:
Additional information Include screenshots if they would be useful in clarifying the problem.
thank you
URL of codelab In which task and step of the codelab can this issue be found? https://developer.android.com/codelabs/basic-android-kotlin-compose-using-state?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-2-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-using-state#8
Describe the problem
val amount = amountInput.toDoubleOrNull() ?: 0.0
Should beval amount = amountInput.value.toDoubleOrNull() ?: 0.0
Steps to reproduce?
Versions Android Studio version: API version of the emulator:
Additional information Include screenshots if they would be useful in clarifying the problem.