From 6211a34e94f2355d4b0613c062fd126fc135f1dc Mon Sep 17 00:00:00 2001 From: Torsten Keil Date: Mon, 30 Jan 2012 20:55:34 +0100 Subject: changed order and used new separator --- main/src/cgeo/geocaching/ui/CacheListAdapter.java | 14 +++++--------- 1 file 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 { 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 infos = new ArrayList(); + 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 infos = new ArrayList(); if (StringUtils.isNotBlank(cache.getGeocode())) { -- cgit v1.1