Fix capitalizing words for Favorites and add description
This commit is contained in:
parent
c2bf0e7fbf
commit
78482f0fa0
2 changed files with 2 additions and 5 deletions
|
@ -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)) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue