diff options
author | campbeb <bpcampbell@gmail.com> | 2012-02-28 20:34:31 +0900 |
---|---|---|
committer | campbeb <bpcampbell@gmail.com> | 2012-02-28 20:34:31 +0900 |
commit | f494ebb740d08c34c061ae9e2613b495bd1495b3 (patch) | |
tree | 83f9df7691707eeaf0e909d4ca7f1e8d9b0b722a /main/src/cgeo/geocaching/cgCache.java | |
parent | f66759490340e827e9e09326dda0c305b8f92168 (diff) | |
download | cgeo-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.java | 5 |
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)); } |