Fix back to travel from gpx menu
This commit is contained in:
parent
5503a32c99
commit
8378a91f05
1 changed files with 5 additions and 0 deletions
|
@ -44,6 +44,7 @@ import net.osmand.plus.wikivoyage.data.TravelArticle;
|
|||
import net.osmand.plus.wikivoyage.data.TravelArticle.TravelArticleIdentifier;
|
||||
import net.osmand.plus.wikivoyage.data.TravelHelper;
|
||||
import net.osmand.plus.wikivoyage.data.TravelLocalDataHelper;
|
||||
import net.osmand.plus.wikivoyage.explore.WikivoyageExploreActivity;
|
||||
import net.osmand.util.Algorithms;
|
||||
|
||||
import java.io.File;
|
||||
|
@ -149,6 +150,10 @@ public class WikivoyageArticleDialogFragment extends WikiArticleBaseDialogFragme
|
|||
if (article == null || activity == null || fm == null) {
|
||||
return;
|
||||
}
|
||||
if (activity instanceof WikivoyageExploreActivity) {
|
||||
WikivoyageExploreActivity exploreActivity = (WikivoyageExploreActivity) activity;
|
||||
exploreActivity.setArticle(article);
|
||||
}
|
||||
TravelHelper travelHelper = getMyApplication().getTravelHelper();
|
||||
File file = travelHelper.createGpxFile(article);
|
||||
openTrack(activity, new File(file.getAbsolutePath()), null);
|
||||
|
|
Loading…
Reference in a new issue