bugfix
git-svn-id: https://osmand.googlecode.com/svn/trunk@581 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
parent
e66a58adb0
commit
bdf96c0470
2 changed files with 7 additions and 7 deletions
|
@ -1298,7 +1298,7 @@ public class MapActivity extends Activity implements IMapLocationListener, Senso
|
|||
} else if(item == 5){
|
||||
if(gpxLayer.isVisible()){
|
||||
gpxLayer.clearCurrentGPX();
|
||||
favoritesLayer.getFavorites().setFavoritePointsFromGPXFile(null);
|
||||
getFavoritesHelper().setFavoritePointsFromGPXFile(null);
|
||||
} else {
|
||||
dialog.dismiss();
|
||||
useGPXFileLayer(false, null);
|
||||
|
@ -1388,7 +1388,7 @@ public class MapActivity extends Activity implements IMapLocationListener, Senso
|
|||
pt.setName(p.name);
|
||||
pts.add(pt);
|
||||
}
|
||||
favoritesLayer.getFavorites().setFavoritePointsFromGPXFile(pts);
|
||||
getFavoritesHelper().setFavoritePointsFromGPXFile(pts);
|
||||
gpxLayer.setTracks(res.locations);
|
||||
}
|
||||
mapView.refreshMap();
|
||||
|
@ -1405,6 +1405,10 @@ public class MapActivity extends Activity implements IMapLocationListener, Senso
|
|||
|
||||
}
|
||||
|
||||
public FavouritesDbHelper getFavoritesHelper() {
|
||||
return ((OsmandApplication)getApplication()).getFavorites();
|
||||
}
|
||||
|
||||
private void useGPXRouting(final LatLon endForRouting, final GPXFileResult res) {
|
||||
Builder builder = new AlertDialog.Builder(this);
|
||||
builder.setItems(new String[]{getString(R.string.gpx_direct_route), getString(R.string.gpx_reverse_route)},
|
||||
|
|
|
@ -169,10 +169,6 @@ public class FavoritesLayer implements OsmandMapLayer, ContextMenuLayer.IContext
|
|||
return null;
|
||||
}
|
||||
|
||||
public FavouritesDbHelper getFavorites() {
|
||||
return favorites;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getObjectDescription(Object o) {
|
||||
|
|
Loading…
Reference in a new issue