diff options
author | Marco Jacob <mjacob@union06.de> | 2012-03-25 22:19:32 +0200 |
---|---|---|
committer | Marco Jacob <mjacob@union06.de> | 2012-03-25 22:19:32 +0200 |
commit | 4b590dbb7acb120df2f85fc7ea9f165658299b3e (patch) | |
tree | 787cf759cab03bd528900e737c1df1132e3482bd /main/src | |
parent | 9b21feb441456a4946997069796bda288e1a49c1 (diff) | |
download | cgeo-4b590dbb7acb120df2f85fc7ea9f165658299b3e.zip cgeo-4b590dbb7acb120df2f85fc7ea9f165658299b3e.tar.gz cgeo-4b590dbb7acb120df2f85fc7ea9f165658299b3e.tar.bz2 |
Reset Progress internal var progress to 0 on reset
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/cgeo/geocaching/activity/Progress.java | 1 | ||||
-rw-r--r-- | main/src/cgeo/geocaching/files/GPXImporter.java | 2 |
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:
|