aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsudev <rasch@munin-soft.de>2014-09-20 13:08:55 +0200
committerSamuel Tardieu <sam@rfc1149.net>2014-09-20 13:16:15 +0200
commit13527f9c79bd6b6c226c32532f917159f0ac404d (patch)
treecc96fe2ddce5cd9e99d2368a6636a7bded971b7f
parent3811e3b79ea63eedd8f0b8628f0e370c51e3662f (diff)
downloadcgeo-13527f9c79bd6b6c226c32532f917159f0ac404d.zip
cgeo-13527f9c79bd6b6c226c32532f917159f0ac404d.tar.gz
cgeo-13527f9c79bd6b6c226c32532f917159f0ac404d.tar.bz2
Fixes #4375, Map popup shows earth cache size
- use cache.showSize() in popup as well
-rw-r--r--main/src/cgeo/geocaching/AbstractDialogFragment.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/AbstractDialogFragment.java b/main/src/cgeo/geocaching/AbstractDialogFragment.java
index 4025347..9277d8c 100644
--- a/main/src/cgeo/geocaching/AbstractDialogFragment.java
+++ b/main/src/cgeo/geocaching/AbstractDialogFragment.java
@@ -4,7 +4,6 @@ import butterknife.ButterKnife;
import cgeo.geocaching.activity.AbstractActivity;
import cgeo.geocaching.activity.ActivityMixin;
-import cgeo.geocaching.enumerations.CacheSize;
import cgeo.geocaching.enumerations.LoadFlags;
import cgeo.geocaching.gcvote.GCVote;
import cgeo.geocaching.gcvote.GCVoteRating;
@@ -211,7 +210,7 @@ public abstract class AbstractDialogFragment extends DialogFragment implements C
assert cache != null;
// cache type
final String cacheType = cache.getType().getL10n();
- final String cacheSize = cache.getSize() != CacheSize.UNKNOWN ? " (" + cache.getSize().getL10n() + ")" : "";
+ final String cacheSize = cache.showSize() ? " (" + cache.getSize().getL10n() + ")" : "";
details.add(R.string.cache_type, cacheType + cacheSize);
details.add(R.string.cache_geocode, cache.getGeocode());