Fix "Crash when add waypoint to current recording gpx track"
This commit is contained in:
parent
2907d49102
commit
6c6230f55c
1 changed files with 3 additions and 1 deletions
|
@ -737,8 +737,10 @@ public class GpxSelectionHelper {
|
||||||
String rootGpxDir = app.getAppPath(IndexConstants.GPX_INDEX_DIR).getAbsolutePath() + '/';
|
String rootGpxDir = app.getAppPath(IndexConstants.GPX_INDEX_DIR).getAbsolutePath() + '/';
|
||||||
String fileName = path.replace(rootGpxDir, "");
|
String fileName = path.replace(rootGpxDir, "");
|
||||||
GPXInfo gpxInfo = GpxUiHelper.getGpxInfoByFileName(app, fileName);
|
GPXInfo gpxInfo = GpxUiHelper.getGpxInfoByFileName(app, fileName);
|
||||||
|
if (gpxInfo != null) {
|
||||||
SearchHistoryHelper.getInstance(app).addNewItemToHistory(gpxInfo);
|
SearchHistoryHelper.getInstance(app).addNewItemToHistory(gpxInfo);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return sf;
|
return sf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue