aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2011-08-27 14:42:12 +0200
committerBananeweizen <bananeweizen@gmx.de>2011-08-27 14:42:12 +0200
commit11ca66296d09b405ca92fc26731ceb64563c2194 (patch)
tree95c89e97cd14594da766bc824300042937053c33
parent92daafa6d47df4cb04453591668bf1e4e4dca8d9 (diff)
downloadcgeo-11ca66296d09b405ca92fc26731ceb64563c2194.zip
cgeo-11ca66296d09b405ca92fc26731ceb64563c2194.tar.gz
cgeo-11ca66296d09b405ca92fc26731ceb64563c2194.tar.bz2
fix #305: Avoid "not chosen" for event caches
-rw-r--r--src/cgeo/geocaching/cgeodetail.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/cgeo/geocaching/cgeodetail.java b/src/cgeo/geocaching/cgeodetail.java
index b2ef32d..e8e77ee 100644
--- a/src/cgeo/geocaching/cgeodetail.java
+++ b/src/cgeo/geocaching/cgeodetail.java
@@ -665,11 +665,12 @@ public class cgeodetail extends AbstractActivity {
itemName.setText(res.getString(R.string.cache_type));
- String size = null;
+ String size = "";
if (cache.size != null && cache.size.length() > 0) {
- size = " (" + cache.size + ")";
- } else {
- size = "";
+ // don't show "not chosen" for events, that should be the normal case
+ if (!(cache.isEventCache() && cache.size.equals("not chosen"))) {
+ size = " (" + cache.size + ")";
+ }
}
if (cgBase.cacheTypesInv.containsKey(cache.type)) { // cache icon