Hey everyone, I am currently working on a side pro...
# compose-android
j
Hey everyone, I am currently working on a side project and implemented some basic settings, so users can change the appearance of the app. Somehow I got an issue with all icons in the app not recomposing properly, after changing the setting, but the rest of the app is properly recomposed. After restart icons look fine again. Does anyone have an idea on how to find out more on why this is happening? NowInAndroid does not have the issue, but the basic setup is pretty much the same.
Also when changing the setting to "Follow System" and then change the system between dark and light mode, everything works as expected.. So It seems to be some kind of composition issue with my settings state, but I do not know what it could be. App is also on github: https://github.com/JohannesPtaszyk/Abonity
b
What file specifically has the code in question?
j
Question was more about how to tackle the debugging of this. Currently I am trying to remove all alpha/beta material libraries and moving back to stable. I tried removing all code and only touching the Compose App with the theme. And even without almost 0 executed lines of code, it still occurs. So really suspicious and maybe not my code at all 😧
d
I have built this kind of thing a few times now. I may be able to help. Are you managing this data in the Theme Composable?
Also is it possible you have a mismatch in the version of material components? For example you are updating Material 3 colors but are using a Material 2 Composable in the tab item. Or vice versa.
@johannes ☝️
j
Alright, got it working now 😄 No mismatches, but something with latest material 3 beta. Could not figure out by now, what it is exactly, but will try to get more info to open a ticket for google.
d
Ah, glad you figured it out!
❤️ 1
j
Thank you anyways for your inputs!
d
No problem!
Have fun composing!
❤️ 1
j
Thank you!