aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgCache.java
diff options
context:
space:
mode:
authorBananeweizen <Bananeweizen@gmx.de>2012-05-05 06:30:11 -0700
committerBananeweizen <Bananeweizen@gmx.de>2012-05-05 06:30:11 -0700
commita96ff028537bf4f8ee11d798015f3adaeffa9905 (patch)
tree0206d67baee4db595d26dffc649719acdcb71616 /main/src/cgeo/geocaching/cgCache.java
parent20d2bdbc35df4617c4e8c950cb4df93b1a831149 (diff)
parent99e47c3bc8edef3d8e2ddbd2ebe88355de509e3f (diff)
downloadcgeo-a96ff028537bf4f8ee11d798015f3adaeffa9905.zip
cgeo-a96ff028537bf4f8ee11d798015f3adaeffa9905.tar.gz
cgeo-a96ff028537bf4f8ee11d798015f3adaeffa9905.tar.bz2
Merge pull request #1502 from marco-jacob/issue#1364-originWaypointsMapsMissing
Solves original waypoints had no static maps
Diffstat (limited to 'main/src/cgeo/geocaching/cgCache.java')
-rw-r--r--main/src/cgeo/geocaching/cgCache.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/main/src/cgeo/geocaching/cgCache.java b/main/src/cgeo/geocaching/cgCache.java
index 6373749..caa2683 100644
--- a/main/src/cgeo/geocaching/cgCache.java
+++ b/main/src/cgeo/geocaching/cgCache.java
@@ -1499,15 +1499,14 @@ public class cgCache implements ICache, IWaypoint {
return;
}
- // store map previews
- StaticMapsProvider.downloadMaps(cache);
+ cache.setListId(listId);
+ cgeoapplication.getInstance().saveCache(cache, EnumSet.of(SaveFlag.SAVE_DB));
if (CancellableHandler.isCancelled(handler)) {
return;
}
- cache.setListId(listId);
- cgeoapplication.getInstance().saveCache(cache, EnumSet.of(SaveFlag.SAVE_DB));
+ StaticMapsProvider.downloadMaps(cache);
if (handler != null) {
handler.sendMessage(Message.obtain());