Fix capitalizing words for Favorites and add description

This commit is contained in:
Victor Shcherb 2015-04-02 00:18:55 +02:00
parent c2bf0e7fbf
commit 78482f0fa0
2 changed files with 2 additions and 5 deletions

View file

@ -197,7 +197,7 @@ public class OsmAndFormatter {
String key = e.getKey();
String vl = e.getValue();
if(Amenity.DESCRIPTION.equals(key)) {
if(amenity.getType().isWiki() && shortDescription) {
if(shortDescription) {
continue;
}
} else if(Amenity.OPENING_HOURS.equals(key)) {

View file

@ -170,10 +170,7 @@ public class FavoritesLayer extends OsmandMapLayer implements ContextMenuLayer.
public String getObjectDescription(Object o) {
Class<? extends LocationPoint> fcl = getFavoriteClass();
if(o!= null && fcl.isInstance(o)) {
String desciption = ((FavouritePoint)o).getDescription() != null ?
" " + ((FavouritePoint)o).getDescription() : "";
return PointDescription.getSimpleName((LocationPoint) o, view.getContext()) + " "
+ desciption; //$NON-NLS-1$
return PointDescription.getSimpleName((LocationPoint) o, view.getContext()) ;
}
return null;
}