JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
14.85k stars 1.08k forks source link

Multiple configuration changes not tracked correctly when using qualifiers #4734

Open zsmb13 opened 2 weeks ago

zsmb13 commented 2 weeks ago

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

Versions

To Reproduce

In the video below, using this sample ResourcesDemo-issue (1).zip, I go from:

  1. Light, English -> Dark, French ✅
  2. Dark, French -> Light, English ❌ as this now shows Light, French resources (values-fr)
  3. 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