aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/CacheDetailActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/CacheDetailActivity.java')
-rw-r--r--main/src/cgeo/geocaching/CacheDetailActivity.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/CacheDetailActivity.java b/main/src/cgeo/geocaching/CacheDetailActivity.java
index 11c4b4f..273aa8c 100644
--- a/main/src/cgeo/geocaching/CacheDetailActivity.java
+++ b/main/src/cgeo/geocaching/CacheDetailActivity.java
@@ -198,6 +198,9 @@ public class CacheDetailActivity extends AbstractViewPagerActivity<CacheDetailAc
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState, R.layout.cacheview);
+ // set title in code, as the activity needs a hard coded title due to the intent filters
+ setTitle(res.getString(R.string.cache));
+
String geocode = null;
// TODO Why can it happen that search is not null? onCreate should be called only once and it is not set before.
@@ -664,6 +667,8 @@ public class CacheDetailActivity extends AbstractViewPagerActivity<CacheDetailAc
}
((TextView) findViewById(R.id.actionbar_title)).setCompoundDrawablesWithIntrinsicBounds(getResources().getDrawable(cache.getType().markerId), null, null, null);
+ // reset imagesList so Images view page will be redrawn
+ imagesList = null;
reinitializeViewPager();
// rendering done! remove progress popup if any there