From 129f74a2d02c744c7df6be5ccd6b662bae9f444d Mon Sep 17 00:00:00 2001 From: Dima-1 Date: Mon, 20 Jan 2020 14:16:15 +0200 Subject: [PATCH] Fix localized favorites export --- .../osmand/plus/activities/FavoritesTreeFragment.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/FavoritesTreeFragment.java b/OsmAnd/src/net/osmand/plus/activities/FavoritesTreeFragment.java index a069e938bb..6e072e1afc 100644 --- a/OsmAnd/src/net/osmand/plus/activities/FavoritesTreeFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/FavoritesTreeFragment.java @@ -537,12 +537,15 @@ public class FavoritesTreeFragment extends OsmandExpandableListFragment implemen StringBuilder html = new StringBuilder(); html.append("

My Favorites

"); for (FavoriteGroup group : groups) { - html.append("

" + group.getName() + "

"); + html.append("

" + group.getDisplayName(app) + "

"); for (FavouritePoint fp : group.getPoints()) { String url = "geo:" + ((float) fp.getLatitude()) + "," + ((float) fp.getLongitude()) + "?m=" + fp.getName(); - html.append("

" + fp.getName() + " - " + "geo:" + html.append("

" + fp.getDisplayName(app) + " - " + "geo:" + ((float) fp.getLatitude()) + "," + ((float) fp.getLongitude()) + "
"); - + if (fp.isAddressSpecified()) { + html.append(": " + fp.getAddress()); + html.append("
"); + } if (!Algorithms.isEmpty(fp.getDescription())) { html.append(": " + fp.getDescription()); }