aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/LogCacheActivity.java
diff options
context:
space:
mode:
authorcampbeb <bpcampbell@gmail.com>2013-06-13 22:57:53 -1000
committercampbeb <bpcampbell@gmail.com>2013-06-13 22:57:53 -1000
commit947df888d1b90c24a5c0d18d0ed9a2eed73868ab (patch)
treee27f5504e95c5d5769e60c8467586fe9f0b86c9e /main/src/cgeo/geocaching/LogCacheActivity.java
parent76f59b8a23b64ac737259f57319c87b3016d80a7 (diff)
downloadcgeo-947df888d1b90c24a5c0d18d0ed9a2eed73868ab.zip
cgeo-947df888d1b90c24a5c0d18d0ed9a2eed73868ab.tar.gz
cgeo-947df888d1b90c24a5c0d18d0ed9a2eed73868ab.tar.bz2
Fix #2882 - Clear offline log through cache object
Go through cache object instead of directly to cgData so change notifications can be made
Diffstat (limited to 'main/src/cgeo/geocaching/LogCacheActivity.java')
-rw-r--r--main/src/cgeo/geocaching/LogCacheActivity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/LogCacheActivity.java b/main/src/cgeo/geocaching/LogCacheActivity.java
index e4d3d17..62c94ce 100644
--- a/main/src/cgeo/geocaching/LogCacheActivity.java
+++ b/main/src/cgeo/geocaching/LogCacheActivity.java
@@ -368,7 +368,7 @@ public class LogCacheActivity extends AbstractLoggingActivity implements DateDia
}
private void clearLog() {
- cgData.clearLogOffline(geocode);
+ cache.clearOfflineLog();
setDefaultValues();
@@ -533,7 +533,7 @@ public class LogCacheActivity extends AbstractLoggingActivity implements DateDia
}
cgData.saveChangedCache(cache);
- cgData.clearLogOffline(geocode);
+ cache.clearOfflineLog();
if (typeSelected == LogType.FOUND_IT) {
if (tweetCheck.isChecked() && tweetBox.getVisibility() == View.VISIBLE) {