aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgBase.java
diff options
context:
space:
mode:
authorbananeweizen <bananeweizen@gmx.de>2011-10-30 14:50:09 +0100
committerbananeweizen <bananeweizen@gmx.de>2011-10-30 14:50:09 +0100
commitd46438381be1e4bf4186e0a426ebed66655266b9 (patch)
treeb3aa7af3df4f33a7c9dda79148613db635144a33 /main/src/cgeo/geocaching/cgBase.java
parent6c74f71960125b5fefc6fbeb4b3d510ae2f921e8 (diff)
downloadcgeo-d46438381be1e4bf4186e0a426ebed66655266b9.zip
cgeo-d46438381be1e4bf4186e0a426ebed66655266b9.tar.gz
cgeo-d46438381be1e4bf4186e0a426ebed66655266b9.tar.bz2
fix #731: OOM in images when downloading
Diffstat (limited to 'main/src/cgeo/geocaching/cgBase.java')
-rw-r--r--main/src/cgeo/geocaching/cgBase.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/cgBase.java b/main/src/cgeo/geocaching/cgBase.java
index 6d4c2f4..d1d4165 100644
--- a/main/src/cgeo/geocaching/cgBase.java
+++ b/main/src/cgeo/geocaching/cgBase.java
@@ -11,6 +11,7 @@ import cgeo.geocaching.enumerations.WaypointType;
import cgeo.geocaching.files.LocParser;
import cgeo.geocaching.geopoint.DistanceParser;
import cgeo.geocaching.geopoint.Geopoint;
+import cgeo.geocaching.network.HtmlImage;
import cgeo.geocaching.utils.BaseUtils;
import cgeo.geocaching.utils.CancellableHandler;
@@ -1659,7 +1660,7 @@ public class cgBase {
final String profile = BaseUtils.replaceWhitespace(getResponseData(request("http://www.geocaching.com/my/", null, false)));
final String avatarURL = BaseUtils.getMatch(profile, GCConstants.PATTERN_AVATAR_IMAGE, false, null);
if (null != avatarURL) {
- final cgHtmlImg imgGetter = new cgHtmlImg(context, "", false, 0, false, false);
+ final HtmlImage imgGetter = new HtmlImage(context, "", false, 0, false, false);
return imgGetter.getDrawable(avatarURL);
}
// No match? There may be no avatar set by user.
@@ -3009,7 +3010,7 @@ public class cgBase {
return;
}
- final cgHtmlImg imgGetter = new cgHtmlImg(activity, cache.geocode, false, listId, true);
+ final HtmlImage imgGetter = new HtmlImage(activity, cache.geocode, false, listId, true);
// store images from description
if (StringUtils.isNotBlank(cache.getDescription())) {