diff options
author | Bananeweizen <Bananeweizen@gmx.de> | 2012-05-05 06:30:11 -0700 |
---|---|---|
committer | Bananeweizen <Bananeweizen@gmx.de> | 2012-05-05 06:30:11 -0700 |
commit | a96ff028537bf4f8ee11d798015f3adaeffa9905 (patch) | |
tree | 0206d67baee4db595d26dffc649719acdcb71616 /main/src/cgeo/geocaching/cgCache.java | |
parent | 20d2bdbc35df4617c4e8c950cb4df93b1a831149 (diff) | |
parent | 99e47c3bc8edef3d8e2ddbd2ebe88355de509e3f (diff) | |
download | cgeo-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.java | 7 |
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()); |