Address are not shown after importing file, but they contains in file.

This commit is contained in:
sergosm 2020-09-12 15:19:29 +03:00
parent bb65803201
commit ff5cc15a24
2 changed files with 2 additions and 0 deletions

View file

@ -128,6 +128,7 @@ public class FavoritesTreeFragment extends OsmandExpandableListFragment implemen
@Override
public void onFavoriteDataUpdated(@NonNull FavouritePoint favouritePoint) {
favouritesAdapter.notifyDataSetChanged();
}
});
}

View file

@ -1221,6 +1221,7 @@ public class ImportHelper {
if (p.desc != null) {
fp.setDescription(p.desc);
}
fp.setAddress(p.getExtensionsToRead().get("address"));
fp.setColor(p.getColor(0));
fp.setIconIdFromName(app, p.getIconName());
fp.setBackgroundType(BackgroundType.getByTypeName(p.getBackgroundType(), DEFAULT_BACKGROUND_TYPE));