diff options
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 + ")"; } } |
