https://kotlinlang.org logo
#compose
Title
# compose
h

Henning B

09/22/2020, 4:11 PM
I got a problem with the State Codelab. In Chapter 6 you are building an input field which gets cleared when you press "add". but as soon you start typing again the text reappears. this seems buggy and I don't know why this is happening. I tested the finished solution from google but it also happens there. Did you also got this problem? why is this happening? Link: https://developer.android.com/codelabs/jetpack-compose-state?return=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fcompose%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fjetpack-compose-state#5
Video of the problem:
@Sean McQuillan [G]
s

Sean McQuillan [G]

09/22/2020, 4:14 PM
I've not seen this before – taking a look
🙇‍♂️ 1
did you bump any versions?
h

Henning B

09/22/2020, 4:14 PM
yeah that could be problem
s

Sean McQuillan [G]

09/22/2020, 4:15 PM
Can you share the versions / AS version you see this in (as it may be relevant)
h

Henning B

09/22/2020, 4:18 PM
AS: 4.2 Canary 11 Compose: 1.0.0 alpha 3 BuildTools: 30.0.0 or 30.0.2 (happens with both) Kotlin 1.4.10 Android gradle build tools 4.2.0-alpha11
Will cycle home now, I check back later if you need any more informations. Would be interested if you can reproduce it. 🙂
Tested it again at home on a Windows PC, cannot recreate the problem on an Android 11 Emulator. Will test tomorrow again at work a MacBook and will switch the device (was a Samsung S8, Android 9)
s

Sean McQuillan [G]

09/23/2020, 4:15 AM
Same – sorry slow reply lots of meetings today. I've not yet reproduced it (trying for that before I go code diving)
h

Henning B

09/23/2020, 7:16 AM
Hey Sean, I think the problem is on my side. I tested it again, running on an Android 11 emulator and Android 9 emulator everything is fine but running on a real Samsung Galaxy S8 (SM-G950F) with Android 9 it happens. Maybe just another Samsung bug 🙄
Not reproducible on a Samsung S9+ with Android 10
s

Sean McQuillan [G]

09/23/2020, 4:33 PM
That's quite unexpected – can I ask you to file a bug with all the versions
2 Views