Use paint 2 for route
This commit is contained in:
parent
f0f27b1477
commit
f56f521f31
1 changed files with 4 additions and 0 deletions
|
@ -76,6 +76,9 @@ public class RouteLayer extends OsmandMapLayer {
|
|||
attrs.defaultColor = view.getResources().getColor(R.color.nav_track);
|
||||
attrs.paint3.setStrokeCap(Cap.BUTT);
|
||||
attrs.paint3.setColor(Color.WHITE);
|
||||
|
||||
attrs.paint2.setStrokeCap(Cap.BUTT);
|
||||
attrs.paint2.setColor(Color.BLACK);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -96,6 +99,7 @@ public class RouteLayer extends OsmandMapLayer {
|
|||
attrs.isPaint3 = false;
|
||||
if(updatePaints) {
|
||||
paintIconAction.setColorFilter(new PorterDuffColorFilter(attrs.paint3.getColor(), Mode.MULTIPLY));
|
||||
paintIcon.setColorFilter(new PorterDuffColorFilter(attrs.paint2.getColor(), Mode.MULTIPLY));
|
||||
}
|
||||
|
||||
if(coloredArrowUp == null) {
|
||||
|
|
Loading…
Reference in a new issue