Thanks for filing. Yes this is a known issue. As a workaround give the different vector drawable xml assets different name properties. The current logic right now is overly aggressive about caching if we think the contents are the same.
2 years ago
Or move the
statement so the entire
changes, not only asset inside of it:
if (value) Icon(vectorResource(R.drawable.ic_add)) else Icon(vectorResource(R.drawable.ic_brightness_5))