diff options
| author | campbeb <bpcampbell@gmail.com> | 2012-02-28 20:32:45 +0900 |
|---|---|---|
| committer | campbeb <bpcampbell@gmail.com> | 2012-02-28 20:32:45 +0900 |
| commit | f66759490340e827e9e09326dda0c305b8f92168 (patch) | |
| tree | 11bf70efc6715cf0f58826ce407a8ebdfd57cc34 | |
| parent | fef3e83bc8ba7663669591c59d9a662530de94ae (diff) | |
| download | cgeo-f66759490340e827e9e09326dda0c305b8f92168.zip cgeo-f66759490340e827e9e09326dda0c305b8f92168.tar.gz cgeo-f66759490340e827e9e09326dda0c305b8f92168.tar.bz2 | |
Improve offline logging
- Don't mark found when logging offline
- Handle data changed to show status message
- Set cache logged offline
| -rw-r--r-- | main/src/cgeo/geocaching/CacheDetailActivity.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/CacheDetailActivity.java b/main/src/cgeo/geocaching/CacheDetailActivity.java index 29c8934..a341333 100644 --- a/main/src/cgeo/geocaching/CacheDetailActivity.java +++ b/main/src/cgeo/geocaching/CacheDetailActivity.java @@ -335,9 +335,6 @@ public class CacheDetailActivity extends AbstractActivity { if (geolocation == null) { geolocation = app.startGeo(locationUpdater); } - if (cache != null) { - cache.setChangeNotificationHandler(cacheChangeNotificationHandler); - } if (refreshOnResume) { notifyDataSetChanged(); refreshOnResume = false; @@ -634,6 +631,11 @@ public class CacheDetailActivity extends AbstractActivity { // Data loaded, we're ready to show it! notifyDataSetChanged(); + // cache isn't available until after notifyDataSetChanged is called + if (cache != null) { + cache.setChangeNotificationHandler(cacheChangeNotificationHandler); + } + } } |
