aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cgeo/geocaching/cgeodetail.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/cgeo/geocaching/cgeodetail.java b/src/cgeo/geocaching/cgeodetail.java
index 1e88ab2..3000ec9 100644
--- a/src/cgeo/geocaching/cgeodetail.java
+++ b/src/cgeo/geocaching/cgeodetail.java
@@ -100,6 +100,11 @@ public class cgeodetail extends AbstractActivity {
* page and put them into the DB. No icons can be matched for these. */
private boolean noAttributeIconsFound = false;
private int attributeBoxMaxWidth;
+ /**
+ * differentiate between whether we are starting the activity for a cache or if we return to the activity from
+ * another activity that we started in front
+ */
+ private boolean disableResumeSetView = false;
private Handler storeCacheHandler = new Handler() {
@Override
@@ -292,6 +297,7 @@ public class cgeodetail extends AbstractActivity {
}
}
};
+
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@@ -373,6 +379,7 @@ public class cgeodetail extends AbstractActivity {
// nothing, we lost the window
}
+ disableResumeSetView = true;
threadCache = new loadCache(loadCacheHandler);
threadCache.start();
}
@@ -393,7 +400,10 @@ public class cgeodetail extends AbstractActivity {
if (geo == null) {
geo = app.startGeo(this, geoUpdate, base, settings, 0, 0);
}
- setView();
+ if (!disableResumeSetView) {
+ setView();
+ }
+ disableResumeSetView = false;
}
@Override