diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2012-04-23 07:50:26 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2012-04-23 07:50:26 +0200 |
| commit | d2fba594dfea96b17ab01bb12afbc37ec10fe251 (patch) | |
| tree | 2e272eae1a0eeadc9213e8059f8f1d6dc381e048 /main/src/cgeo/geocaching/files/GPXParser.java | |
| parent | 0d19a993a9d2e99bd4f0627d182870ee1606cb91 (diff) | |
| download | cgeo-d2fba594dfea96b17ab01bb12afbc37ec10fe251.zip cgeo-d2fba594dfea96b17ab01bb12afbc37ec10fe251.tar.gz cgeo-d2fba594dfea96b17ab01bb12afbc37ec10fe251.tar.bz2 | |
refactoring of database access
* use only one transaction when saving a cache
* rework some methods to always take a collection of objects instead of
calling the database multiple times
Diffstat (limited to 'main/src/cgeo/geocaching/files/GPXParser.java')
| -rw-r--r-- | main/src/cgeo/geocaching/files/GPXParser.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/files/GPXParser.java b/main/src/cgeo/geocaching/files/GPXParser.java index 8b9cdda..ec8c307 100644 --- a/main/src/cgeo/geocaching/files/GPXParser.java +++ b/main/src/cgeo/geocaching/files/GPXParser.java @@ -1,9 +1,9 @@ package cgeo.geocaching.files; +import cgeo.geocaching.LogEntry; import cgeo.geocaching.R; import cgeo.geocaching.StoredList; import cgeo.geocaching.cgCache; -import cgeo.geocaching.LogEntry; import cgeo.geocaching.cgTrackable; import cgeo.geocaching.cgWaypoint; import cgeo.geocaching.cgeoapplication; @@ -76,7 +76,7 @@ public abstract class GPXParser extends FileParser { private cgCache cache; private cgTrackable trackable = new cgTrackable(); - private LogEntry log = new LogEntry(); + private LogEntry log = null; private String type = null; private String sym = null; @@ -674,7 +674,7 @@ public abstract class GPXParser extends FileParser { @Override public void start(Attributes attrs) { - log = new LogEntry(); + log = new LogEntry("", 0, LogType.LOG_UNKNOWN, ""); try { if (attrs.getIndex("id") > -1) { |
