diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2012-05-01 16:31:57 +0200 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2012-05-01 16:31:57 +0200 |
commit | 7014038873c9feeffd981a8a259862280548f81c (patch) | |
tree | c755d841a3f840cda0e29c74fa35d62c3520d99d | |
parent | c61f8b728e62e4e86e304956af7bc41b1839017f (diff) | |
download | cgeo-7014038873c9feeffd981a8a259862280548f81c.zip cgeo-7014038873c9feeffd981a8a259862280548f81c.tar.gz cgeo-7014038873c9feeffd981a8a259862280548f81c.tar.bz2 |
fix #1475: remove "published" from log count output
-rw-r--r-- | main/src/cgeo/geocaching/CacheDetailActivity.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/CacheDetailActivity.java b/main/src/cgeo/geocaching/CacheDetailActivity.java index 922c959..b1cb15e 100644 --- a/main/src/cgeo/geocaching/CacheDetailActivity.java +++ b/main/src/cgeo/geocaching/CacheDetailActivity.java @@ -31,6 +31,7 @@ import cgeo.geocaching.utils.UnknownTagsHandler; import com.viewpagerindicator.TitlePageIndicator; import com.viewpagerindicator.TitleProvider; + import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang3.StringEscapeUtils; import org.apache.commons.lang3.StringUtils; @@ -2116,8 +2117,6 @@ public class CacheDetailActivity extends AbstractActivity { // log count if (cache.getLogCounts() != null) { - boolean showLogCounter = false; - final StringBuilder text = new StringBuilder(200); text.append(res.getString(R.string.cache_log_types)); text.append(": "); @@ -2136,10 +2135,11 @@ public class CacheDetailActivity extends AbstractActivity { } }); + boolean showLogCounter = false; for (Entry<LogType, Integer> pair : sortedLogCounts) { String logTypeLabel = pair.getKey().getL10n(); // it may happen that the label is unknown -> then avoid any output for this type - if (logTypeLabel != null) { + if (logTypeLabel != null && pair.getKey() != LogType.PUBLISH_LISTING) { if (showLogCounter) { text.append(", "); } |