Simplify names
This commit is contained in:
parent
cc6455beed
commit
a2a013d809
1 changed files with 10 additions and 1 deletions
|
@ -76,6 +76,13 @@ public class PointDescription {
|
|||
if (isLocation()) {
|
||||
return getLocationName(ctx, lat, lon, true).replace('\n', ' ');
|
||||
}
|
||||
if (!Algorithms.isEmpty(typeName)) {
|
||||
if (Algorithms.isEmpty(name)) {
|
||||
return typeName;
|
||||
} else {
|
||||
return typeName.trim() + ": " + name;
|
||||
}
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
|
@ -174,7 +181,9 @@ public class PointDescription {
|
|||
|
||||
|
||||
public static String getSimpleName(LocationPoint o, Context ctx) {
|
||||
return o.getPointDescription(ctx).getFullPlainName(ctx, o.getLatitude(), o.getLongitude());
|
||||
PointDescription pd = o.getPointDescription(ctx);
|
||||
return pd.getSimpleName(ctx, o.getLatitude(), o.getLongitude());
|
||||
// return o.getPointDescription(ctx).getFullPlainName(ctx, o.getLatitude(), o.getLongitude());
|
||||
}
|
||||
|
||||
public static String serializeToString(PointDescription p) {
|
||||
|
|
Loading…
Reference in a new issue