diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2012-01-08 12:46:43 +0100 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2012-01-08 12:46:43 +0100 |
commit | ffee09f7c5e4867184fff6e4fef8f9c19a47f370 (patch) | |
tree | a89b31ffb40a88a77fb2f1bbced1cffee01caea6 | |
parent | cdd9939761c09dc0b00c825cfbab80aa198348f2 (diff) | |
download | cgeo-ffee09f7c5e4867184fff6e4fef8f9c19a47f370.zip cgeo-ffee09f7c5e4867184fff6e4fef8f9c19a47f370.tar.gz cgeo-ffee09f7c5e4867184fff6e4fef8f9c19a47f370.tar.bz2 |
fix #900: Static maps not updated
-rw-r--r-- | main/src/cgeo/geocaching/cgData.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/cgData.java b/main/src/cgeo/geocaching/cgData.java index 7562104..0363d33 100644 --- a/main/src/cgeo/geocaching/cgData.java +++ b/main/src/cgeo/geocaching/cgData.java @@ -40,6 +40,7 @@ import java.util.regex.Pattern; public class cgData { + // TODO: remove plural public enum StorageLocations { HEAP, CACHE, @@ -1251,6 +1252,10 @@ public class cgData { return false; } + // remember this cache in the caches cache. it is highly likely that we will need it in a few moments and + // this way we also remove any stale instance from the caches cache + cgeoapplication.getInstance().putCacheInCache(cache); + ContentValues values = new ContentValues(); if (cache.getUpdated() == 0) { |