compose-multiplatform
compose-multiplatform copied to clipboard
Multiple configuration changes not tracked correctly when using qualifiers
trafficstars
Describe the bug
Sometimes the configuration changes I make are not taken into account immediately, and I get (partially) stuck with values from a previous configuration. I have a project here with strings set up in the values, values-dark, values-fr, values-fr-dark folders.
So far could only reproduce this on an emulator and not a real device.
Affected platforms
- Android emulator (?)
Versions
- Kotlin version*: 1.9.23
- Compose Multiplatform version*: 1.6.10-dev1593
- OS architecture (x86 or arm64): arm64
- Device (model or simulator for iOS issues): Pixel 7 Pro, API 34 (simulator)
To Reproduce
In the video below, using this sample ResourcesDemo-issue (1).zip, I go from:
- Light, English -> Dark, French ✅
- Dark, French -> Light, English ❌ as this now shows Light, French resources (values-fr)
- Finally, going from English to French and to English again makes it update correctly.
Screenshots
https://github.com/JetBrains/compose-multiplatform/assets/12054216/a24a6e1e-8914-4af9-af8b-e03fb0710cbe