Merge pull request #4624 from osmandapp/fix_waypoints_import

Select gpx when import waypoints
This commit is contained in:
vshcherb 2017-10-20 14:06:30 +02:00 committed by GitHub
commit 4468913b13

View file

@ -647,6 +647,10 @@ public class TrackPointFragment extends OsmandExpandableListFragment {
AndroidUtils.trimExtension(gpx.getName()), MarkersSyncGroup.GPX_TYPE);
markersHelper.addMarkersSyncGroup(syncGroup);
markersHelper.syncGroup(syncGroup);
GPXFile gpxFile = getTrackActivity().getGpx();
if (gpxFile != null) {
app.getSelectedGpxHelper().selectGpxFile(gpxFile, true, false);
}
} else {
for (GpxDisplayItem i : entry.getValue()) {
if (i.locationStart != null) {