Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/r4.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
0xRe1nk0 committed Dec 10, 2024
2 parents c0fb1a4 + c179f96 commit ac3f846
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ object RouteActivityHelper {
runAsync {
trackItems.forEach { trackItem ->
trackItem.getFile()?.let { file ->
val gpxFile = PlatformUtil.getOsmAndContext().getSelectedFileByPath(file.absolutePath())
if (gpxFile != null && gpxFile.error == null) {
var gpxFile = PlatformUtil.getOsmAndContext().getSelectedFileByPath(file.absolutePath())
if (gpxFile == null) {
gpxFile = GpxUtilities.loadGpxFile(file)
}
if (gpxFile.error == null) {
saveRouteActivityAsync(gpxFile, routeActivity)
}
}
Expand Down

0 comments on commit ac3f846

Please sign in to comment.