compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Multiple configuration changes not tracked correctly when using qualifiers

Open zsmb13 opened this issue 1 year ago • 0 comments
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:

  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

zsmb13 avatar Apr 30 '24 07:04 zsmb13