From 1c85fc6362264ccd12fb53f57e330c2c62353dd9 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sun, 4 Aug 2013 15:28:16 +0200 Subject: [PATCH] Add osm bug color for not uploaded bugs --- OsmAnd/res/values/colors.xml | 1 + OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/OsmAnd/res/values/colors.xml b/OsmAnd/res/values/colors.xml index cf1137dbfd..4b0733ccab 100644 --- a/OsmAnd/res/values/colors.xml +++ b/OsmAnd/res/values/colors.xml @@ -55,5 +55,6 @@ #C8FF0000 #C800FF00 + #C8FFFF00 \ No newline at end of file diff --git a/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java b/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java index b7a607847b..cf1fa439af 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java @@ -62,6 +62,7 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider private List objects = new ArrayList(); private Paint pointClosedUI; private Paint pointOpenedUI; + private Paint pointNotSubmitedUI; private double cTopLatitude; private double cBottomLatitude; @@ -120,6 +121,9 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider pointOpenedUI = new Paint(); pointOpenedUI.setColor(activity.getResources().getColor(R.color.osmbug_opened)); pointOpenedUI.setAntiAlias(true); + pointNotSubmitedUI = new Paint(); + pointNotSubmitedUI.setColor(activity.getResources().getColor(R.color.osmbug_not_submitted)); + pointNotSubmitedUI.setAntiAlias(true); pointClosedUI = new Paint(); pointClosedUI.setColor(activity.getResources().getColor(R.color.osmbug_closed)); pointClosedUI.setAntiAlias(true); @@ -153,7 +157,8 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider for (OpenStreetNote o : objects) { int x = view.getMapXForPoint(o.getLongitude()); int y = view.getMapYForPoint(o.getLatitude()); - canvas.drawCircle(x, y, getRadiusBug(view.getZoom()), o.isOpened()? pointOpenedUI: pointClosedUI); + canvas.drawCircle(x, y, getRadiusBug(view.getZoom()), o.isLocal() ? pointNotSubmitedUI : (o.isOpened() ? pointOpenedUI + : pointClosedUI)); } }