aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/SearchResult.java
diff options
context:
space:
mode:
authorBananeweizen <Bananeweizen@gmx.de>2012-02-16 08:10:19 +0100
committerBananeweizen <Bananeweizen@gmx.de>2012-02-16 08:10:19 +0100
commit165910f327630231b131f6890df0defae28775ce (patch)
treee1fc08f4237d6b3d321b952874cfc1ec4523db69 /main/src/cgeo/geocaching/SearchResult.java
parentb166652df38ac6c4534856ead21acd5bfb308a5a (diff)
downloadcgeo-165910f327630231b131f6890df0defae28775ce.zip
cgeo-165910f327630231b131f6890df0defae28775ce.tar.gz
cgeo-165910f327630231b131f6890df0defae28775ce.tar.bz2
refactoring: use underscore in symbolic constants
* otherwise they are not readable
Diffstat (limited to 'main/src/cgeo/geocaching/SearchResult.java')
-rw-r--r--main/src/cgeo/geocaching/SearchResult.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/SearchResult.java b/main/src/cgeo/geocaching/SearchResult.java
index c1e04ef..27efb68 100644
--- a/main/src/cgeo/geocaching/SearchResult.java
+++ b/main/src/cgeo/geocaching/SearchResult.java
@@ -145,7 +145,7 @@ public class SearchResult implements Parcelable {
result.geocodes.clear();
for (final String geocode : geocodes) {
- cgCache cache = cgeoapplication.getInstance().loadCache(geocode, LoadFlags.LOADCACHEORDB);
+ cgCache cache = cgeoapplication.getInstance().loadCache(geocode, LoadFlags.LOAD_CACHE_OR_DB);
// Is there any reason to exclude the cache from the list?
final boolean excludeCache = (excludeDisabled && cache.isDisabled()) ||
(excludeMine && (cache.isOwn() || cache.isFound())) ||
@@ -177,7 +177,7 @@ public class SearchResult implements Parcelable {
/** Add the cache geocode to the search and store the cache in the CacheCache */
public boolean addCache(final cgCache cache) {
addGeocode(cache.getGeocode());
- return cgeoapplication.getInstance().saveCache(cache, EnumSet.of(SaveFlag.SAVECACHE));
+ return cgeoapplication.getInstance().saveCache(cache, EnumSet.of(SaveFlag.SAVE_CACHE));
}
/** Add the cache geocodes to the search and store them in the CacheCache */