aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/maps
diff options
context:
space:
mode:
authorblafoo <github@blafoo.de>2012-02-24 21:44:20 +0100
committerblafoo <github@blafoo.de>2012-02-24 22:17:32 +0100
commit0b2cb4da12d3263a4a264a0e2eb5b8d0a449ee0f (patch)
treead3acc3ce228c170784db34f651d84f01ff52a6a /main/src/cgeo/geocaching/maps
parentb5be674f2344140f89b8d49f5111ff86c519281c (diff)
downloadcgeo-0b2cb4da12d3263a4a264a0e2eb5b8d0a449ee0f.zip
cgeo-0b2cb4da12d3263a4a264a0e2eb5b8d0a449ee0f.tar.gz
cgeo-0b2cb4da12d3263a4a264a0e2eb5b8d0a449ee0f.tar.bz2
New connector functionality
Diffstat (limited to 'main/src/cgeo/geocaching/maps')
-rw-r--r--main/src/cgeo/geocaching/maps/CGeoMap.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java
index 5ff26e0..004118f 100644
--- a/main/src/cgeo/geocaching/maps/CGeoMap.java
+++ b/main/src/cgeo/geocaching/maps/CGeoMap.java
@@ -15,6 +15,7 @@ import cgeo.geocaching.cgWaypoint;
import cgeo.geocaching.cgeoapplication;
import cgeo.geocaching.cgeocaches;
import cgeo.geocaching.activity.ActivityMixin;
+import cgeo.geocaching.connector.ConnectorFactory;
import cgeo.geocaching.connector.gc.GCBase;
import cgeo.geocaching.enumerations.CacheType;
import cgeo.geocaching.enumerations.LoadFlags;
@@ -1266,8 +1267,10 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto
}
if (tokens == null) {
- // token = cgBase.getMapUserToken(noMapTokenHandler);
tokens = GCBase.getTokens();
+ if (noMapTokenHandler != null && tokens == null) {
+ noMapTokenHandler.sendEmptyMessage(0);
+ }
}
if (stop) {
@@ -1276,7 +1279,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto
final Viewport viewport = new Viewport(new Geopoint(latMin, lonMin), new Geopoint(latMax, lonMax));
// search = cgBase.searchByViewport(token, viewport);
- search = GCBase.searchByViewport(viewport, tokens);
+ search = ConnectorFactory.searchByViewport(viewport, tokens);
if (search != null) {
downloaded = true;
if (search.error == StatusCode.NOT_LOGGED_IN) {