aboutsummaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorcampbeb <bpcampbell@gmail.com>2012-02-28 20:32:45 +0900
committercampbeb <bpcampbell@gmail.com>2012-02-28 20:32:45 +0900
commitf66759490340e827e9e09326dda0c305b8f92168 (patch)
tree11bf70efc6715cf0f58826ce407a8ebdfd57cc34 /main/src
parentfef3e83bc8ba7663669591c59d9a662530de94ae (diff)
downloadcgeo-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
Diffstat (limited to 'main/src')
-rw-r--r--main/src/cgeo/geocaching/CacheDetailActivity.java8
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);
+ }
+
}
}