diff options
| author | Bananeweizen <Bananeweizen@gmx.de> | 2012-02-17 20:01:02 +0100 |
|---|---|---|
| committer | Bananeweizen <Bananeweizen@gmx.de> | 2012-02-17 20:01:02 +0100 |
| commit | c412e5a4d2105cf8457ee8b2fd799b6fedb5e092 (patch) | |
| tree | 0ea70e0c2eedda73ea6fedf808d637c5b7d7888a /main/src | |
| parent | 10ea7ae0d43eeb4c743cd94f4f1e73ec1fdeb32a (diff) | |
| download | cgeo-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.java | 6 |
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); |
