Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Customized location icon is not visible if its color is defined via theme attribute #716

Open
grzesiek2010 opened this issue Oct 18, 2021 · 0 comments
Labels

Comments

@grzesiek2010
Copy link

grzesiek2010 commented Oct 18, 2021

Hi!
I'm Grzegorz form Open Data Kit where we use Mapbox and recently spotted this bug (ref: getodk/collect#4858).
I investigated the issue and it turns out that the icon is not visible if we use theme attribute (?colorPrimary in our case) but everything is fine if I call the resource directly (@color/colorPrimary).
Here is the custom drawable we use: https://github.com/getodk/collect/blob/master/collect_app/src/main/res/drawable/ic_crosshairs.xml
What's interesting is the fact we also use a custom icons for symbols and there theme attributes work well so it seems to be a bug only in the location icon.

Version:
In ODK we use v9.2.1 but I also checked newer versions like: 9.7.0 and the problem is not solved there as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant