Your First Kotlin Android App: An App From Scratch, Episode 17: Work with Strings | Kodeco


This is a companion discussion topic for the original entry at https://www.kodeco.com/37720073-your-first-kotlin-android-app-an-app-from-scratch/lessons/17

LESSON #16: Maybe I missed it somewhere but toward the end of the discussion I noticed a new Parameter was shown for the ResultDialog composable. I noticed it in the code shown but it had NOT been added in any previous lesson. It just appeared.
The hideDialog: → Unit. line just showed up in the ResultDialog. file.
That messed up the call to it in the GameScreen.kt file. I did see that in the written transcript of the lesson it is mentioned briefly before you are told to run the app. But in the recorded video lesson it is not mentioned. I figured it out and the code now works. Also, when asked to rotate the emulated device: I am running a Pixel 7 Pro api33 device. When I rotate the device the screen does NOT auto rotate until I click the dot on the emulator screen, Whatever that is? And when I rotate it back to portrait it does not turn with the screen and I can’t figure out how to get the app to rotate back without restarting the app?

Thanks for the comment and I’m glad you’re spotting stuffs as you take the course.
The hideDialog lambda was added in episode 14 at 10:05.
You must have skipped or missed that part so there is no issue with the code as I’ve already talked about it and added the code in episode 14.

About the rotation, you have to enable auto-rotate in your device or emulator just like every Android device. Besides, Bullseye is going to be a Landscape only app. Not to worry, we’ll set that up in the next course :]