aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/files/GPXParser.java
diff options
context:
space:
mode:
authorStephan Merker <merker.stephan@googlemail.com>2011-11-09 23:13:31 +0100
committerStephan Merker <merker.stephan@googlemail.com>2011-11-09 23:13:31 +0100
commit759f158b115fe27f7c61409d5f540d1effb6c0e1 (patch)
treeb3acf25fd5445ccb7d9b9e0e81818ecee010c3d7 /main/src/cgeo/geocaching/files/GPXParser.java
parentdc1dcb57cf7b4b3b183e240e1a529816d3107ff4 (diff)
downloadcgeo-759f158b115fe27f7c61409d5f540d1effb6c0e1.zip
cgeo-759f158b115fe27f7c61409d5f540d1effb6c0e1.tar.gz
cgeo-759f158b115fe27f7c61409d5f540d1effb6c0e1.tar.bz2
new: cancel GPX import with back button
Diffstat (limited to 'main/src/cgeo/geocaching/files/GPXParser.java')
-rw-r--r--main/src/cgeo/geocaching/files/GPXParser.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/files/GPXParser.java b/main/src/cgeo/geocaching/files/GPXParser.java
index c1901de..8901d46 100644
--- a/main/src/cgeo/geocaching/files/GPXParser.java
+++ b/main/src/cgeo/geocaching/files/GPXParser.java
@@ -13,12 +13,12 @@ import cgeo.geocaching.enumerations.CacheSize;
import cgeo.geocaching.enumerations.CacheType;
import cgeo.geocaching.enumerations.WaypointType;
import cgeo.geocaching.geopoint.Geopoint;
+import cgeo.geocaching.utils.CancellableHandler;
import org.apache.commons.lang3.StringUtils;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
-import android.os.Handler;
import android.sax.Element;
import android.sax.EndElementListener;
import android.sax.EndTextElementListener;
@@ -235,7 +235,7 @@ public abstract class GPXParser extends FileParser {
return formatSimple.parse(input);
}
- public Collection<cgCache> parse(final InputStream stream, final Handler progressHandler) throws IOException, ParserException {
+ public Collection<cgCache> parse(final InputStream stream, final CancellableHandler progressHandler) throws IOException, ParserException {
final RootElement root = new RootElement(namespace, "gpx");
final Element waypoint = root.getChild(namespace, "wpt");