This commit is contained in:
vshcherb 2014-05-28 02:11:47 +02:00
parent cee2c99356
commit 620b7ad92d

View file

@ -86,7 +86,7 @@ public class OsMoPositionLayer extends OsmandMapLayer implements ContextMenuLaye
final int r = getRadiusPoi(tb);
for (OsMoDevice t : getTrackingDevices()) {
Location l = t.getLastLocation();
if (t != null) {
if (l != null) {
int x = (int) tb.getPixXFromLatLon(l.getLatitude(), l.getLongitude());
int y = (int) tb.getPixYFromLatLon(l.getLatitude(), l.getLongitude());
pointAltUI.setColor(t.getColor());