aboutsummaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorM@®k <github@blafoo.de>2012-01-29 14:17:07 -0800
committerM@®k <github@blafoo.de>2012-01-29 14:17:07 -0800
commit7fba2c26fd9203eb9cde0997bca231b63f11c2c4 (patch)
tree34d86869eb1e60c0f184532994e710f82b1a8b9c /main/src
parentd155639b03e012deae8d201d7581ea4456e0dede (diff)
parent1e37d47beaa78b74a277969ebc258ff91bcbb351 (diff)
downloadcgeo-7fba2c26fd9203eb9cde0997bca231b63f11c2c4.zip
cgeo-7fba2c26fd9203eb9cde0997bca231b63f11c2c4.tar.gz
cgeo-7fba2c26fd9203eb9cde0997bca231b63f11c2c4.tar.bz2
Merge pull request #1063 from rsudev/livemap_reliable_fix
Fixes #1037, New live-map reliability check
Diffstat (limited to 'main/src')
-rw-r--r--main/src/cgeo/geocaching/cgBase.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/main/src/cgeo/geocaching/cgBase.java b/main/src/cgeo/geocaching/cgBase.java
index 49e58e2..ed3bfd9 100644
--- a/main/src/cgeo/geocaching/cgBase.java
+++ b/main/src/cgeo/geocaching/cgBase.java
@@ -737,10 +737,10 @@ public class cgBase {
final JSONObject extra = dataJSON.getJSONObject("cs");
if (extra != null && extra.length() > 0) {
int count = extra.getInt("count");
- // unused, meaning not clear boolean li = extra.getBoolean("li");
- // expected meaning pm=premium member
- boolean pm = extra.getBoolean("pm");
- if (Settings.isPremiumMember() && !pm) {
+ // currently unused: 'pm', true for premium members
+ // check login status
+ boolean li = extra.getBoolean("li");
+ if (!li) {
parseResult.error = StatusCode.NOT_LOGGED_IN;
}
@@ -756,8 +756,8 @@ public class cgBase {
final cgCache cacheToAdd = new cgCache();
cacheToAdd.setDetailed(false);
- // coords could be reliable but we only can detect that for premium members
- cacheToAdd.setReliableLatLon(pm);
+ // coords are reliable if we are logged in
+ cacheToAdd.setReliableLatLon(li);
cacheToAdd.setGeocode(oneCache.getString("gc"));
cacheToAdd.setCoords(new Geopoint(oneCache.getDouble("lat"), oneCache.getDouble("lon")));
cacheToAdd.setName(oneCache.getString("nn"));