aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/connector
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2015-01-16 13:38:06 +0100
committerSamuel Tardieu <sam@rfc1149.net>2015-01-16 13:40:02 +0100
commit2908ba721fcc297b6947cf3f4c758d536ad1034b (patch)
treeba4bbf61622ef1461d889cb67d50d7a18d85430b /main/src/cgeo/geocaching/connector
parent59927ca5ecf68ed8fc5a5f9be6e60b2eb4003c47 (diff)
downloadcgeo-2908ba721fcc297b6947cf3f4c758d536ad1034b.zip
cgeo-2908ba721fcc297b6947cf3f4c758d536ad1034b.tar.gz
cgeo-2908ba721fcc297b6947cf3f4c758d536ad1034b.tar.bz2
fix #4619: ANR when loading direction images for basic member
There is no need to preload direction images from the parsing, they will be loaded asynchronously in the list adapter instead.
Diffstat (limited to 'main/src/cgeo/geocaching/connector')
-rw-r--r--main/src/cgeo/geocaching/connector/gc/GCParser.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/main/src/cgeo/geocaching/connector/gc/GCParser.java b/main/src/cgeo/geocaching/connector/gc/GCParser.java
index 5c03dd7..f20df8d 100644
--- a/main/src/cgeo/geocaching/connector/gc/GCParser.java
+++ b/main/src/cgeo/geocaching/connector/gc/GCParser.java
@@ -28,7 +28,6 @@ import cgeo.geocaching.location.Geopoint;
import cgeo.geocaching.network.Network;
import cgeo.geocaching.network.Parameters;
import cgeo.geocaching.settings.Settings;
-import cgeo.geocaching.ui.DirectionImage;
import cgeo.geocaching.utils.CancellableHandler;
import cgeo.geocaching.utils.HtmlUtils;
import cgeo.geocaching.utils.JsonUtils;
@@ -343,16 +342,6 @@ public abstract class GCParser {
}
}
- // get direction images
- if (Settings.getLoadDirImg()) {
- final Set<Geocache> cachesReloaded = searchResult.getCachesFromSearchResult(LoadFlags.LOAD_CACHE_OR_DB);
- for (final Geocache cache : cachesReloaded) {
- if (cache.getCoords() == null && StringUtils.isNotEmpty(cache.getDirectionImg())) {
- DirectionImage.getDrawable(cache.getDirectionImg());
- }
- }
- }
-
return searchResult;
}