Android Kotlin Fundamentals codelab: Made a more efficient code for this #573
Description
Name of the Codelab or Codelab URL
Android Kotlin Fundamentals Codelab 1.2: Get Started
Android Kotlin Fundamentals->DiceRoller App
Describe the problem
I have made a more efficient code for the same app.
Instead of using lateinit, I have modified the rollDice function, so that it has an input parameter of type ImageView, when we call this function in line 45, I have called the diceImage variable that is of type ImageView and "points to" the @id/dice_image.
In which lesson and step of the codelab can this issue be found?
Android Kotlin Fundamentals Codelab 1.2: Get Started. Not a specific step number but just enhancement for overall code.
How to reproduce?
Please check this unattended Pull Request that I had made earlier for solution.
#512
Versions
- What version of Android Studio are you using? 30.0.2
codelab: android-kotlin-fundamentals