diff options
author | SammysHP <sven@sammyshp.de> | 2011-12-04 21:43:20 +0100 |
---|---|---|
committer | SammysHP <sven@sammyshp.de> | 2011-12-04 21:43:20 +0100 |
commit | a22ecefce63a1541b8febc4585fdf5dc6465d0ac (patch) | |
tree | fa8fd0b04b7977d7b489a76a87690b09e00164de /main/src/cgeo | |
parent | b71cbd766e148d729d69d6d0db4b87de3d0169e4 (diff) | |
download | cgeo-a22ecefce63a1541b8febc4585fdf5dc6465d0ac.zip cgeo-a22ecefce63a1541b8febc4585fdf5dc6465d0ac.tar.gz cgeo-a22ecefce63a1541b8febc4585fdf5dc6465d0ac.tar.bz2 |
Fix #862: No text in Viewager after opening cache from LiveMap or Nearby list
Diffstat (limited to 'main/src/cgeo')
-rw-r--r-- | main/src/cgeo/geocaching/CacheDetailActivity.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/CacheDetailActivity.java b/main/src/cgeo/geocaching/CacheDetailActivity.java index 4da2b71..d905c1c 100644 --- a/main/src/cgeo/geocaching/CacheDetailActivity.java +++ b/main/src/cgeo/geocaching/CacheDetailActivity.java @@ -124,6 +124,11 @@ public class CacheDetailActivity extends AbstractActivity { private ViewPagerAdapter viewPagerAdapter; /** + * The {@link TitlePageIndicator} for this activity. + */ + private TitlePageIndicator titleIndicator; + + /** * If another activity is called and can modify the data of this activity, we refresh it on resume. */ private boolean refreshOnResume = false; @@ -241,7 +246,7 @@ public class CacheDetailActivity extends AbstractActivity { viewPagerAdapter = new ViewPagerAdapter(); pager.setAdapter(viewPagerAdapter); - TitlePageIndicator titleIndicator = (TitlePageIndicator) findViewById(R.id.pager_indicator); + titleIndicator = (TitlePageIndicator) findViewById(R.id.pager_indicator); titleIndicator.setViewPager(pager); // Initialization done. Let's load the data with the given information. @@ -588,6 +593,9 @@ public class CacheDetailActivity extends AbstractActivity { // notify the adapter that the data has changed viewPagerAdapter.notifyDataSetChanged(); + // notify the indicator that the data has changed + titleIndicator.notifyDataSetChanged(); + // rendering done! remove progress-popup if any there progress.dismiss(); } |