diff options
| author | Karsten Priegnitz <koem@petoria.de> | 2011-09-15 14:08:44 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2011-09-15 14:08:44 +0200 |
| commit | a97f03151faed72242a99b70b7f2277e0731c802 (patch) | |
| tree | fa545125a7c06bf3dfae80a320846ba7b864c658 /src/cgeo/geocaching/cgeodetail.java | |
| parent | 6e02f9ed6e13ad42b34eb066740b20cf7bda803f (diff) | |
| download | cgeo-a97f03151faed72242a99b70b7f2277e0731c802.zip cgeo-a97f03151faed72242a99b70b7f2277e0731c802.tar.gz cgeo-a97f03151faed72242a99b70b7f2277e0731c802.tar.bz2 | |
Cache size: using constants, not strings
Diffstat (limited to 'src/cgeo/geocaching/cgeodetail.java')
| -rw-r--r-- | src/cgeo/geocaching/cgeodetail.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cgeo/geocaching/cgeodetail.java b/src/cgeo/geocaching/cgeodetail.java index 38c5d7e..f8513e1 100644 --- a/src/cgeo/geocaching/cgeodetail.java +++ b/src/cgeo/geocaching/cgeodetail.java @@ -4,6 +4,7 @@ import cgeo.geocaching.activity.AbstractActivity; import cgeo.geocaching.apps.cache.GeneralAppsFactory; import cgeo.geocaching.apps.cache.navi.NavigationAppFactory; import cgeo.geocaching.compatibility.Compatibility; +import cgeo.geocaching.enumerations.CacheSize; import cgeo.geocaching.utils.CollectionUtils; import org.apache.commons.lang3.StringUtils; @@ -664,10 +665,10 @@ public class cgeodetail extends AbstractActivity { itemName.setText(res.getString(R.string.cache_type)); String size = ""; - if (StringUtils.isNotBlank(cache.size)) { + if (cache.size != null) { // don't show "not chosen" for events, that should be the normal case - if (!(cache.isEventCache() && cache.size.equals("not chosen"))) { - size = " (" + cache.size + ")"; + if (!(cache.isEventCache() && cache.size == CacheSize.NOT_CHOSEN)) { + size = " (" + cache.size.id + ")"; } } |
