Fix #8269
This commit is contained in:
parent
791f8ad065
commit
c066e737fe
2 changed files with 6 additions and 1 deletions
|
@ -1557,6 +1557,8 @@ public class GPXUtilities {
|
||||||
serializer.endTag(null, "wpt"); //$NON-NLS-1$
|
serializer.endTag(null, "wpt"); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
|
writeExtensions(serializer, file);
|
||||||
|
|
||||||
serializer.endTag(null, "gpx"); //$NON-NLS-1$
|
serializer.endTag(null, "gpx"); //$NON-NLS-1$
|
||||||
serializer.endDocument();
|
serializer.endDocument();
|
||||||
serializer.flush();
|
serializer.flush();
|
||||||
|
|
|
@ -1119,7 +1119,7 @@ public class OsmandAidlApi {
|
||||||
|
|
||||||
@SuppressLint("StaticFieldLeak")
|
@SuppressLint("StaticFieldLeak")
|
||||||
private void finishGpxImport(boolean destinationExists, File destination, String color, boolean show) {
|
private void finishGpxImport(boolean destinationExists, File destination, String color, boolean show) {
|
||||||
int col = ConfigureMapMenu.GpxAppearanceAdapter.parseTrackColor(
|
final int col = ConfigureMapMenu.GpxAppearanceAdapter.parseTrackColor(
|
||||||
app.getRendererRegistry().getCurrentSelectedRenderer(), color);
|
app.getRendererRegistry().getCurrentSelectedRenderer(), color);
|
||||||
if (!destinationExists) {
|
if (!destinationExists) {
|
||||||
GpxDataItem gpxDataItem = new GpxDataItem(destination, col);
|
GpxDataItem gpxDataItem = new GpxDataItem(destination, col);
|
||||||
|
@ -1145,6 +1145,9 @@ public class OsmandAidlApi {
|
||||||
@Override
|
@Override
|
||||||
protected void onPostExecute(GPXFile gpx) {
|
protected void onPostExecute(GPXFile gpx) {
|
||||||
if (gpx.error == null) {
|
if (gpx.error == null) {
|
||||||
|
if (col != -1) {
|
||||||
|
gpx.setColor(col);
|
||||||
|
}
|
||||||
selectedGpx.setGpxFile(gpx, app);
|
selectedGpx.setGpxFile(gpx, app);
|
||||||
refreshMap();
|
refreshMap();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue