diff options
| author | Bananeweizen <Bananeweizen@gmx.de> | 2012-08-19 08:14:37 +0200 |
|---|---|---|
| committer | Bananeweizen <Bananeweizen@gmx.de> | 2012-08-19 11:47:17 +0200 |
| commit | 59a962c3c92bba382295b3b7df055d18bed3e827 (patch) | |
| tree | 4798ac36fc48262e4aa6adf49ddad47a74e04a59 /main/src/cgeo/geocaching/enumerations | |
| parent | b95a66609cef2ae0e80514702385f9333d8be929 (diff) | |
| download | cgeo-59a962c3c92bba382295b3b7df055d18bed3e827.zip cgeo-59a962c3c92bba382295b3b7df055d18bed3e827.tar.gz cgeo-59a962c3c92bba382295b3b7df055d18bed3e827.tar.bz2 | |
fix #1963: Include "Cache Beacon" in apps
Diffstat (limited to 'main/src/cgeo/geocaching/enumerations')
| -rw-r--r-- | main/src/cgeo/geocaching/enumerations/CacheAttribute.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/enumerations/CacheAttribute.java b/main/src/cgeo/geocaching/enumerations/CacheAttribute.java index 6456f71..a31b0cc 100644 --- a/main/src/cgeo/geocaching/enumerations/CacheAttribute.java +++ b/main/src/cgeo/geocaching/enumerations/CacheAttribute.java @@ -137,4 +137,8 @@ public enum CacheAttribute { public static boolean isEnabled(final String attributeName) { return !StringUtils.endsWithIgnoreCase(attributeName, INTERNAL_NO); } + + public String getAttributeName(final boolean yes) { + return gcRawName + (yes ? INTERNAL_YES : INTERNAL_NO); + } } |
