diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2011-10-16 08:39:57 +0200 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2011-10-16 08:39:57 +0200 |
commit | bdf2f092c306274527f0f0f5aed4196a92dd0ca6 (patch) | |
tree | 761ee524c08c331b52e571adf4ffa06fc1d8565e /main/src/cgeo/geocaching/apps | |
parent | 9715ae30450e02fcf731a06888ad832c1734e544 (diff) | |
download | cgeo-bdf2f092c306274527f0f0f5aed4196a92dd0ca6.zip cgeo-bdf2f092c306274527f0f0f5aed4196a92dd0ca6.tar.gz cgeo-bdf2f092c306274527f0f0f5aed4196a92dd0ca6.tar.bz2 |
support cache type "unknown", fixes #518
* refactored many places to reference the cache type enum
* special icon for "unknown" still missing
Diffstat (limited to 'main/src/cgeo/geocaching/apps')
-rw-r--r-- | main/src/cgeo/geocaching/apps/cache/WhereYouGoApp.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/apps/cache/WhereYouGoApp.java b/main/src/cgeo/geocaching/apps/cache/WhereYouGoApp.java index b12a6d1..d006571 100644 --- a/main/src/cgeo/geocaching/apps/cache/WhereYouGoApp.java +++ b/main/src/cgeo/geocaching/apps/cache/WhereYouGoApp.java @@ -2,6 +2,7 @@ package cgeo.geocaching.apps.cache; import cgeo.geocaching.R; import cgeo.geocaching.cgCache; +import cgeo.geocaching.enumerations.CacheType; import android.content.res.Resources; @@ -12,6 +13,6 @@ class WhereYouGoApp extends AbstractGeneralApp implements GeneralApp { @Override public boolean isEnabled(cgCache cache) { - return cache != null && cache.type != null && cache.type.equalsIgnoreCase("wherigo"); + return cache != null && cache.type != null && cache.type.equalsIgnoreCase(CacheType.WHERIGO.id); } } |