aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgeowaypointadd.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2011-11-07 18:21:19 +0100
committerSamuel Tardieu <sam@rfc1149.net>2011-11-07 18:35:29 +0100
commit3668637ef8de16add92db0f6a15282fc23282ba4 (patch)
treed98475917ef39f3ef923af01babde43bc3295daa /main/src/cgeo/geocaching/cgeowaypointadd.java
parent48a1073edac0a3ed8296c38abcd421381710c47a (diff)
downloadcgeo-3668637ef8de16add92db0f6a15282fc23282ba4.zip
cgeo-3668637ef8de16add92db0f6a15282fc23282ba4.tar.gz
cgeo-3668637ef8de16add92db0f6a15282fc23282ba4.tar.bz2
Use a separate and unique thread for Go4Cache
This change creates a new Go4Cache thread which is started only when the user opts in in sending their position to go4cache.com. Instead of creating a new thread for every update, the same thread is reused and orders are given through a one-position queue.
Diffstat (limited to 'main/src/cgeo/geocaching/cgeowaypointadd.java')
-rw-r--r--main/src/cgeo/geocaching/cgeowaypointadd.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/cgeowaypointadd.java b/main/src/cgeo/geocaching/cgeowaypointadd.java
index bce8441..ab73af5 100644
--- a/main/src/cgeo/geocaching/cgeowaypointadd.java
+++ b/main/src/cgeo/geocaching/cgeowaypointadd.java
@@ -91,7 +91,7 @@ public class cgeowaypointadd extends AbstractActivity {
setTitle("waypoint");
if (geo == null) {
- geo = app.startGeo(this, geoUpdate, base, 0, 0);
+ geo = app.startGeo(this, geoUpdate, 0, 0);
}
// get parameters
@@ -146,7 +146,7 @@ public class cgeowaypointadd extends AbstractActivity {
if (geo == null) {
- geo = app.startGeo(this, geoUpdate, base, 0, 0);
+ geo = app.startGeo(this, geoUpdate, 0, 0);
}
if (id > 0) {