mapbox-gl-native-android icon indicating copy to clipboard operation
mapbox-gl-native-android copied to clipboard

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

Open grzesiek2010 opened this issue 4 years ago • 0 comments

Hi! I'm Grzegorz form Open Data Kit where we use Mapbox and recently spotted this bug (ref: https://github.com/getodk/collect/issues/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.

grzesiek2010 avatar Oct 18 '21 12:10 grzesiek2010