aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2013-05-25 10:27:51 +0200
committerSamuel Tardieu <sam@rfc1149.net>2013-05-25 10:28:52 +0200
commitce354f10a0c28e3c6a3cd1407d62bc23968677f9 (patch)
treef0f3c218a8de2f804dd192c9acb5178d3790bb38
parentd7d425b1d146b6b828cc5c155873ca7f32e365a0 (diff)
downloadcgeo-ce354f10a0c28e3c6a3cd1407d62bc23968677f9.zip
cgeo-ce354f10a0c28e3c6a3cd1407d62bc23968677f9.tar.gz
cgeo-ce354f10a0c28e3c6a3cd1407d62bc23968677f9.tar.bz2
fix #2771: cache archived status not updated on refresh
-rw-r--r--main/src/cgeo/geocaching/Geocache.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/Geocache.java b/main/src/cgeo/geocaching/Geocache.java
index 836cccb..7057ab3 100644
--- a/main/src/cgeo/geocaching/Geocache.java
+++ b/main/src/cgeo/geocaching/Geocache.java
@@ -194,15 +194,19 @@ public class Geocache implements ICache, IWaypoint {
cacheType = other.cacheType;
zoomlevel = other.zoomlevel;
// boolean values must be enumerated here. Other types are assigned outside this if-statement
+ // TODO: check whether a search or a live map systematically returns those, in which case
+ // we want to keep the most recent one instead of getting information from the previously
+ // stored data. This is the case for "archived" for example which has been taken out of this
+ // list.
premiumMembersOnly = other.premiumMembersOnly;
reliableLatLon = other.reliableLatLon;
- archived = other.archived;
found = other.found;
disabled = other.disabled;
favorite = other.favorite;
onWatchlist = other.onWatchlist;
logOffline = other.logOffline;
finalDefined = other.finalDefined;
+ // archived is kept from the most recent data
}
/*