Fix dimension pixel size

This commit is contained in:
Dima-1 2020-05-21 16:39:16 +03:00
parent aa05635f6e
commit 59d5d307e0

View file

@ -175,7 +175,7 @@ public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer.ICon
@Override
public void initLayer(OsmandMapTileView view) {
this.view = view;
poiSize = (int) app.getResources().getDimension(R.dimen.poi_icon_size);
poiSize = app.getResources().getDimensionPixelSize(R.dimen.poi_icon_size);
poiColorFilter = new PorterDuffColorFilter(Color.WHITE, PorterDuff.Mode.SRC_IN);
paintIconBackground = new Paint();
poiBackground = BitmapFactory.decodeResource(view.getResources(), R.drawable.map_white_orange_poi_shield);