diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2011-11-17 20:53:15 +0100 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2011-11-17 20:53:15 +0100 |
commit | cec86a63af5bbe08cbe1c66492a52fd3d8b8b8e4 (patch) | |
tree | 8c71d4a3476dba50e670d590b9c7b1d06b920a71 /main/src/cgeo/geocaching | |
parent | 121e67853aa16355378c6efdae7848e91d0abe47 (diff) | |
download | cgeo-cec86a63af5bbe08cbe1c66492a52fd3d8b8b8e4.zip cgeo-cec86a63af5bbe08cbe1c66492a52fd3d8b8b8e4.tar.gz cgeo-cec86a63af5bbe08cbe1c66492a52fd3d8b8b8e4.tar.bz2 |
increase readability, fixes #809
Diffstat (limited to 'main/src/cgeo/geocaching')
-rw-r--r-- | main/src/cgeo/geocaching/cgCacheListAdapter.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/main/src/cgeo/geocaching/cgCacheListAdapter.java b/main/src/cgeo/geocaching/cgCacheListAdapter.java index c765b1a..1d2f1b8 100644 --- a/main/src/cgeo/geocaching/cgCacheListAdapter.java +++ b/main/src/cgeo/geocaching/cgCacheListAdapter.java @@ -47,7 +47,7 @@ import java.util.Set; public class cgCacheListAdapter extends ArrayAdapter<cgCache> { - private static final String SEPARATOR = " | "; + private static final String SEPARATOR = " ยท "; final private Resources res; final private List<cgCache> list; private cgCacheView holder = null; @@ -556,19 +556,19 @@ public class cgCacheListAdapter extends ArrayAdapter<cgCache> { if (StringUtils.isNotBlank(cache.getGeocode())) { cacheInfo.append(cache.getGeocode()); } - if (cache.hasDifficulty() || cache.hasTerrain()) { + if (cache.hasDifficulty()) { if (cacheInfo.length() > 0) { cacheInfo.append(SEPARATOR); } - - if (cache.hasDifficulty()) { - cacheInfo.append("D:"); - cacheInfo.append(String.format("%.1f ", cache.getDifficulty())); - } - if (cache.hasTerrain()) { - cacheInfo.append("T:"); - cacheInfo.append(String.format("%.1f", cache.getTerrain())); + cacheInfo.append("D "); + cacheInfo.append(String.format("%.1f", cache.getDifficulty())); + } + if (cache.hasTerrain()) { + if (cacheInfo.length() > 0) { + cacheInfo.append(SEPARATOR); } + cacheInfo.append("T "); + cacheInfo.append(String.format("%.1f", cache.getTerrain())); } // don't show "not chosen" for events and virtuals, that should be the normal case if (cache.getSize() != null && cache.showSize()) { |