fix(core-android): ActivityIndicator changed transferred its color to other ActivityIndicators of the same page#9026
Conversation
|
Wouldn t it be better to mutate only when setting the color? If all your activity indicators use the theme color no need to mutate anythin |
That is because an indicator's color can be changed multiple times depending on one's needs, resulting in pointless |
|
Then mark the indicator as mutated. Oersonnaly as I use theme color for indicators I see that PR as a perf lost. I understand the need but we should do it right and mutate only when needed |
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Dimitris - Rafail Katsampas.
|
You are right! To be honest, I didn't consider theme-based indicators. I just committed few more changes that might make things better. |
…color of the rest of ActivityIndicators in the same page.
PR Checklist
What is the current behavior?
Changing color to an ActivityIndicator applies the new color to all other ActivityIndicators in the same page.
That only applies to Android.
What is the new behavior?
Each indicator has independent color by calling
mutate()on indicator drawable instance at the creation of view.Fixes/Closes #9021 .