aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/ui/DirectionImage.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2012-03-10 07:37:59 +0100
committerBananeweizen <bananeweizen@gmx.de>2012-03-10 07:37:59 +0100
commitb297de18e81872e9725867ba4da4a9481aedfcbf (patch)
tree80db5404f602577fdbf2d3e1bb34c36f850300d2 /main/src/cgeo/geocaching/ui/DirectionImage.java
parent5daaa3d454ff680e74fdbf8f673674d0eb339817 (diff)
downloadcgeo-b297de18e81872e9725867ba4da4a9481aedfcbf.zip
cgeo-b297de18e81872e9725867ba4da4a9481aedfcbf.tar.gz
cgeo-b297de18e81872e9725867ba4da4a9481aedfcbf.tar.bz2
refactoring: first part of removing cgBase
* extract network stuff (non GC related) * extract GC login stuff * move UI related pieces to activities * to do: move parsing and searching to better places, remove cgBase completely afterwards
Diffstat (limited to 'main/src/cgeo/geocaching/ui/DirectionImage.java')
-rw-r--r--main/src/cgeo/geocaching/ui/DirectionImage.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/ui/DirectionImage.java b/main/src/cgeo/geocaching/ui/DirectionImage.java
index 35b209f..aa01b97 100644
--- a/main/src/cgeo/geocaching/ui/DirectionImage.java
+++ b/main/src/cgeo/geocaching/ui/DirectionImage.java
@@ -1,7 +1,7 @@
package cgeo.geocaching.ui;
-import cgeo.geocaching.cgBase;
import cgeo.geocaching.files.LocalStorage;
+import cgeo.geocaching.network.Network;
import cgeo.geocaching.network.Parameters;
import org.apache.commons.lang3.StringUtils;
@@ -17,7 +17,7 @@ public class DirectionImage {
}
final HttpResponse httpResponse =
- cgBase.request("http://www.geocaching.com/ImgGen/seek/CacheDir.ashx", new Parameters("k", code), false);
+ Network.request("http://www.geocaching.com/ImgGen/seek/CacheDir.ashx", new Parameters("k", code), false);
if (httpResponse != null) {
LocalStorage.saveEntityToFile(httpResponse, getDirectionFile(geocode, true));
}