From 13527f9c79bd6b6c226c32532f917159f0ac404d Mon Sep 17 00:00:00 2001 From: rsudev Date: Sat, 20 Sep 2014 13:08:55 +0200 Subject: Fixes #4375, Map popup shows earth cache size - use cache.showSize() in popup as well --- main/src/cgeo/geocaching/AbstractDialogFragment.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'main/src') 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()); -- cgit v1.1