Do not open context menu for synced icons

This commit is contained in:
PavelRatushny 2017-11-15 17:53:18 +02:00
parent a4e681af2f
commit 956281db89
2 changed files with 12 additions and 8 deletions

View file

@ -184,9 +184,11 @@ public class FavouritesLayer extends OsmandMapLayer implements ContextMenuLayer.
int ex = (int) point.x;
int ey = (int) point.y;
for (FavouritePoint n : getPoints()) {
if (!getSyncedPoints().contains(n)) {
getFavFromPoint(tb, res, r, ex, ey, n);
}
}
}
private void getFavFromPoint(RotatedTileBox tb, List<? super FavouritePoint> res, int r, int ex, int ey,
FavouritePoint n) {

View file

@ -539,6 +539,7 @@ public class GPXLayer extends OsmandMapLayer implements ContextMenuLayer.IContex
int ex = (int) point.x;
int ey = (int) point.y;
for (SelectedGpxFile g : selectedGpxHelper.getSelectedGPXFiles()) {
if (!isSynced(g)) {
List<WptPt> pts = getListStarPoints(g);
// int fcolor = g.getColor() == 0 ? clr : g.getColor();
for (WptPt n : pts) {
@ -550,6 +551,7 @@ public class GPXLayer extends OsmandMapLayer implements ContextMenuLayer.IContex
}
}
}
}
@Override
public PointDescription getObjectName(Object o) {