aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorblafoo <github@blafoo.de>2012-05-07 18:46:21 +0200
committerblafoo <github@blafoo.de>2012-05-07 18:46:21 +0200
commita63b830a85f2d0ef3c0184e95218560874a36fe5 (patch)
tree22c79b70af910565ebce64859bd7038e255697e7
parented0850e5293591ecf7493e1c69d5ae10cb2eccf6 (diff)
downloadcgeo-a63b830a85f2d0ef3c0184e95218560874a36fe5.zip
cgeo-a63b830a85f2d0ef3c0184e95218560874a36fe5.tar.gz
cgeo-a63b830a85f2d0ef3c0184e95218560874a36fe5.tar.bz2
Fix: update stored caches in database when logged, too.
-rw-r--r--main/src/cgeo/geocaching/VisitCacheActivity.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/VisitCacheActivity.java b/main/src/cgeo/geocaching/VisitCacheActivity.java
index 8e7385a..df55ad6 100644
--- a/main/src/cgeo/geocaching/VisitCacheActivity.java
+++ b/main/src/cgeo/geocaching/VisitCacheActivity.java
@@ -703,13 +703,12 @@ public class VisitCacheActivity extends AbstractActivity implements DateDialog.D
final LogEntry logNow = new LogEntry(date, typeSelected, log);
cache.prependLog(logNow);
- // app.saveLogs(cache);
if (typeSelected == LogType.FOUND_IT) {
cache.setFound(true);
}
- app.saveCache(cache, EnumSet.of(SaveFlag.SAVE_CACHE));
+ app.saveCache(cache, cache.getListId() != StoredList.TEMPORARY_LIST_ID ? LoadFlags.SAVE_ALL : EnumSet.of(SaveFlag.SAVE_CACHE));
}
if (status == StatusCode.NO_ERROR) {