This repository was archived by the owner on Jun 21, 2023. It is now read-only.
This repository was 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
Description
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.