diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2011-09-03 10:57:47 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2011-09-03 10:57:47 +0200 |
| commit | 1ca5b0ddbe8ecaa67b1606f386ae398c0bf8da10 (patch) | |
| tree | 8b049d7a5226c781a5a1a246be8b8c365785cb49 /src | |
| parent | 1b962ddadb49c071fc3088c2cd919b437716deea (diff) | |
| download | cgeo-1ca5b0ddbe8ecaa67b1606f386ae398c0bf8da10.zip cgeo-1ca5b0ddbe8ecaa67b1606f386ae398c0bf8da10.tar.gz cgeo-1ca5b0ddbe8ecaa67b1606f386ae398c0bf8da10.tar.bz2 | |
fix #354: details view is populated twice
Diffstat (limited to 'src')
| -rw-r--r-- | src/cgeo/geocaching/cgeodetail.java | 12 |
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 |
