MFlisar / ComposePreferences

Compose Preference Screen for Android - Material3 Design (including customisation, nesting and more)
Apache License 2.0
8 stars 0 forks source link

Issue with item order after removing of preference item #9

Open naixx opened 3 weeks ago

naixx commented 3 weeks ago

After I remove an item from prefs and click items below, all clicks are redirected to wrong callbacks. Here is a video. https://github.com/user-attachments/assets/91db2edb-ea4b-43d8-a125-e5edba66a789

Any tips to create a quick workaround?

MFlisar commented 3 weeks ago

Quick fix is probably to use the visibility property to hide the preference instead of removing it - this should work.

I'm currently rewriting the logic of the internal id / hierarchy management anyways so this bug is nothing I will look into.