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/cgCacheListAdapter.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/cgCacheListAdapter.java')
| -rw-r--r-- | src/cgeo/geocaching/cgCacheListAdapter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cgeo/geocaching/cgCacheListAdapter.java b/src/cgeo/geocaching/cgCacheListAdapter.java index 4e1d4e4..a3563b0 100644 --- a/src/cgeo/geocaching/cgCacheListAdapter.java +++ b/src/cgeo/geocaching/cgCacheListAdapter.java @@ -592,11 +592,11 @@ public class cgCacheListAdapter extends ArrayAdapter<cgCache> { if (StringUtils.isNotBlank(cache.geocode)) { cacheInfo.append(cache.geocode); } - if (StringUtils.isNotBlank(cache.size)) { + if (cache.size != null) { if (cacheInfo.length() > 0) { cacheInfo.append(" | "); } - cacheInfo.append(cache.size); + cacheInfo.append(cache.size.id); } if ((cache.difficulty != null && cache.difficulty > 0f) || (cache.terrain != null && cache.terrain > 0f) || (cache.rating != null && cache.rating > 0f)) { if (cacheInfo.length() > 0 && ((cache.difficulty != null && cache.difficulty > 0f) || (cache.terrain != null && cache.terrain > 0f))) { |
