aboutsummaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorBananeweizen <Bananeweizen@gmx.de>2012-02-17 20:01:02 +0100
committerBananeweizen <Bananeweizen@gmx.de>2012-02-17 20:01:02 +0100
commitc412e5a4d2105cf8457ee8b2fd799b6fedb5e092 (patch)
tree0ea70e0c2eedda73ea6fedf808d637c5b7d7888a /main/src
parent10ea7ae0d43eeb4c743cd94f4f1e73ec1fdeb32a (diff)
downloadcgeo-c412e5a4d2105cf8457ee8b2fd799b6fedb5e092.zip
cgeo-c412e5a4d2105cf8457ee8b2fd799b6fedb5e092.tar.gz
cgeo-c412e5a4d2105cf8457ee8b2fd799b6fedb5e092.tar.bz2
fix: offline logging information missing in all lists
Diffstat (limited to 'main/src')
-rw-r--r--main/src/cgeo/geocaching/cgeocaches.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgeocaches.java b/main/src/cgeo/geocaching/cgeocaches.java
index fc25d1b..7d3a057 100644
--- a/main/src/cgeo/geocaching/cgeocaches.java
+++ b/main/src/cgeo/geocaching/cgeocaches.java
@@ -8,6 +8,7 @@ import cgeo.geocaching.apps.cachelist.CacheListAppFactory;
import cgeo.geocaching.enumerations.CacheListType;
import cgeo.geocaching.enumerations.CacheType;
import cgeo.geocaching.enumerations.LoadFlags;
+import cgeo.geocaching.enumerations.LoadFlags.LoadFlag;
import cgeo.geocaching.enumerations.LogType;
import cgeo.geocaching.enumerations.StatusCode;
import cgeo.geocaching.files.GPXImporter;
@@ -78,6 +79,7 @@ import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
+import java.util.EnumSet;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -173,7 +175,9 @@ public class cgeocaches extends AbstractListActivity {
setTitle(title + " [" + search.getCount() + "]");
cacheList.clear();
- final Set<cgCache> caches = search.getCachesFromSearchResult(LoadFlags.LOAD_CACHE_OR_DB);
+ EnumSet<LoadFlag> loadFlags = LoadFlags.LOAD_CACHE_OR_DB;
+ loadFlags.add(LoadFlag.LOAD_OFFLINE_LOG);
+ final Set<cgCache> caches = search.getCachesFromSearchResult(loadFlags);
if (CollectionUtils.isNotEmpty(caches)) {
cacheList.addAll(caches);
Collections.sort(cacheList, gcComparator);