aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTorsten Keil <github@torsten-keil.net>2012-01-30 20:55:34 +0100
committerTorsten Keil <github@torsten-keil.net>2012-01-30 20:55:34 +0100
commit6211a34e94f2355d4b0613c062fd126fc135f1dc (patch)
tree933c64e6dedb58df31644f215cf5cf6f68a0bce0
parent460d78b9518386f567e5a4c5752ad653a3a48419 (diff)
downloadcgeo-6211a34e94f2355d4b0613c062fd126fc135f1dc.zip
cgeo-6211a34e94f2355d4b0613c062fd126fc135f1dc.tar.gz
cgeo-6211a34e94f2355d4b0613c062fd126fc135f1dc.tar.bz2
changed order and used new separator
-rw-r--r--main/src/cgeo/geocaching/ui/CacheListAdapter.java14
1 files changed, 5 insertions, 9 deletions
diff --git a/main/src/cgeo/geocaching/ui/CacheListAdapter.java b/main/src/cgeo/geocaching/ui/CacheListAdapter.java
index 3a93c6a..0a4e395 100644
--- a/main/src/cgeo/geocaching/ui/CacheListAdapter.java
+++ b/main/src/cgeo/geocaching/ui/CacheListAdapter.java
@@ -570,15 +570,11 @@ public class CacheListAdapter extends ArrayAdapter<cgCache> {
holder.favourite.setBackgroundResource(favoriteBack);
if (cacheListType == CacheListType.HISTORY && cache.getVisitedDate() > 0) {
- StringBuilder cacheInfo = new StringBuilder(50);
- cacheInfo.append(cgBase.formatTime(cache.getVisitedDate()));
- cacheInfo.append("; ");
- cacheInfo.append(cgBase.formatDate(cache.getVisitedDate()));
- if (StringUtils.isNotBlank(cache.getGeocode())) {
- cacheInfo.append(SEPARATOR);
- cacheInfo.append(StringUtils.upperCase(cache.getGeocode()));
- }
- holder.info.setText(cacheInfo.toString());
+ ArrayList<String> infos = new ArrayList<String>();
+ infos.add(StringUtils.upperCase(cache.getGeocode()));
+ infos.add(cgBase.formatDate(cache.getVisitedDate()));
+ infos.add(cgBase.formatTime(cache.getVisitedDate()));
+ holder.info.setText(StringUtils.join(infos, SEPARATOR));
} else {
ArrayList<String> infos = new ArrayList<String>();
if (StringUtils.isNotBlank(cache.getGeocode())) {