diff options
| -rw-r--r-- | main/src/cgeo/geocaching/apps/AbstractLocusApp.java | 2 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/cgCache.java | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/apps/AbstractLocusApp.java b/main/src/cgeo/geocaching/apps/AbstractLocusApp.java index 982dae6..d1dda2a 100644 --- a/main/src/cgeo/geocaching/apps/AbstractLocusApp.java +++ b/main/src/cgeo/geocaching/apps/AbstractLocusApp.java @@ -123,7 +123,7 @@ public abstract class AbstractLocusApp extends AbstractApp { if (cache.getHidden() != null) { pg.hidden = ISO8601DATE.format(cache.getHidden().getTime()); } - int locusId = toLocusId(CacheType.getById(cache.getType())); + int locusId = toLocusId(cache.getCacheType()); if (locusId != NO_LOCUS_ID) { pg.type = locusId; } diff --git a/main/src/cgeo/geocaching/cgCache.java b/main/src/cgeo/geocaching/cgCache.java index 13c24d2..89760a8 100644 --- a/main/src/cgeo/geocaching/cgCache.java +++ b/main/src/cgeo/geocaching/cgCache.java @@ -404,6 +404,10 @@ public class cgCache implements ICache { return terrain; } + /** + * @deprecated Use getCacheType() instead + * @return cache type as an id + */ @Deprecated public String getType() { if (null != cacheType) { |
