diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2011-09-16 16:56:24 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2011-09-16 16:56:24 +0200 |
commit | f3be29549e524305c0833d66b6d2465df270ff5a (patch) | |
tree | 474221a3dd841582647f504f130fe6b4a25068e8 /main/src/cgeo/geocaching/cgData.java | |
parent | 4ce69432eac38b0ebc143d19a3ce31fe8789ab38 (diff) | |
download | cgeo-f3be29549e524305c0833d66b6d2465df270ff5a.zip cgeo-f3be29549e524305c0833d66b6d2465df270ff5a.tar.gz cgeo-f3be29549e524305c0833d66b6d2465df270ff5a.tar.bz2 |
Cache result of waypoint order computation
Diffstat (limited to 'main/src/cgeo/geocaching/cgData.java')
-rw-r--r-- | main/src/cgeo/geocaching/cgData.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/cgData.java b/main/src/cgeo/geocaching/cgData.java index c24d0ff..2d7a653 100644 --- a/main/src/cgeo/geocaching/cgData.java +++ b/main/src/cgeo/geocaching/cgData.java @@ -1368,7 +1368,7 @@ public class cgData { values.put("geocode", geocode); values.put("updated", timeStamp); values.put("type", oneWaypoint.type); - values.put("prefix", oneWaypoint.prefix); + values.put("prefix", oneWaypoint.getPrefix()); values.put("lookup", oneWaypoint.lookup); values.put("name", oneWaypoint.name); values.put("latlon", oneWaypoint.latlon); @@ -1456,7 +1456,7 @@ public class cgData { values.put("geocode", geocode); values.put("updated", System.currentTimeMillis()); values.put("type", waypoint.type); - values.put("prefix", waypoint.prefix); + values.put("prefix", waypoint.getPrefix()); values.put("lookup", waypoint.lookup); values.put("name", waypoint.name); values.put("latlon", waypoint.latlon); @@ -2166,7 +2166,7 @@ public class cgData { waypoint.id = (int) cursor.getInt(cursor.getColumnIndex("_id")); waypoint.geocode = (String) cursor.getString(cursor.getColumnIndex("geocode")); waypoint.type = (String) cursor.getString(cursor.getColumnIndex("type")); - waypoint.prefix = (String) cursor.getString(cursor.getColumnIndex("prefix")); + waypoint.setPrefix((String) cursor.getString(cursor.getColumnIndex("prefix"))); waypoint.lookup = (String) cursor.getString(cursor.getColumnIndex("lookup")); waypoint.name = (String) cursor.getString(cursor.getColumnIndex("name")); waypoint.latlon = (String) cursor.getString(cursor.getColumnIndex("latlon")); |