aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgCache.java
diff options
context:
space:
mode:
authorcampbeb <bpcampbell@gmail.com>2012-02-28 20:34:31 +0900
committercampbeb <bpcampbell@gmail.com>2012-02-28 20:34:31 +0900
commitf494ebb740d08c34c061ae9e2613b495bd1495b3 (patch)
tree83f9df7691707eeaf0e909d4ca7f1e8d9b0b722a /main/src/cgeo/geocaching/cgCache.java
parentf66759490340e827e9e09326dda0c305b8f92168 (diff)
downloadcgeo-f494ebb740d08c34c061ae9e2613b495bd1495b3.zip
cgeo-f494ebb740d08c34c061ae9e2613b495bd1495b3.tar.gz
cgeo-f494ebb740d08c34c061ae9e2613b495bd1495b3.tar.bz2
Improve offline logging
- Don't mark found when logging offline - Handle data changed to show status message - Set cache logged offline
Diffstat (limited to 'main/src/cgeo/geocaching/cgCache.java')
-rw-r--r--main/src/cgeo/geocaching/cgCache.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/cgCache.java b/main/src/cgeo/geocaching/cgCache.java
index e308209..f7d503e 100644
--- a/main/src/cgeo/geocaching/cgCache.java
+++ b/main/src/cgeo/geocaching/cgCache.java
@@ -436,12 +436,13 @@ public class cgCache implements ICache {
cgeoapplication app = (cgeoapplication) ((Activity) fromActivity).getApplication();
final boolean status = app.saveLogOffline(geocode, date.getTime(), logType, log);
- notifyChange();
-
Resources res = ((Activity) fromActivity).getResources();
if (status) {
fromActivity.showToast(res.getString(R.string.info_log_saved));
app.saveVisitDate(geocode);
+ logOffline = true;
+
+ notifyChange();
} else {
fromActivity.showToast(res.getString(R.string.err_log_post_failed));
}