aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/src/cgeo/geocaching/activity/Progress.java1
-rw-r--r--main/src/cgeo/geocaching/files/GPXImporter.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/activity/Progress.java b/main/src/cgeo/geocaching/activity/Progress.java
index fc64c01..dbe4700 100644
--- a/main/src/cgeo/geocaching/activity/Progress.java
+++ b/main/src/cgeo/geocaching/activity/Progress.java
@@ -70,6 +70,7 @@ public class Progress {
dialog.setMax(modMax);
dialog.setProgress(0);
}
+ this.progress = 0;
}
public synchronized void setProgress(final int progress) {
diff --git a/main/src/cgeo/geocaching/files/GPXImporter.java b/main/src/cgeo/geocaching/files/GPXImporter.java
index 7efda60..7d992ac 100644
--- a/main/src/cgeo/geocaching/files/GPXImporter.java
+++ b/main/src/cgeo/geocaching/files/GPXImporter.java
@@ -399,10 +399,10 @@ public class GPXImporter {
break;
case IMPORT_STEP_STORE_CACHES:
- showProgressAfterCancel = true;
progress.setProgressDivider(1);
progress.setMessage(res.getString(msg.arg1));
progress.setMaxProgressAndReset(msg.arg2);
+ showProgressAfterCancel = true;
break;
case IMPORT_STEP_STORE_STATIC_MAPS: