show portal title in share activity

This commit is contained in:
Philipp Schaefer
2013-12-07 13:36:39 +01:00
parent 90cb29a58b
commit aab1616df0
6 changed files with 6 additions and 3 deletions

View File

@ -81,7 +81,7 @@ public class ShareActivity extends FragmentActivity implements ActionBar.TabList
String geoUri = "geo:" + mLl;
Intent geoIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(geoUri));
intents.add(geoIntent);
addTab(intents, R.string.tab_map, R.drawable.ic_action_map);
addTab(intents, R.string.tab_map, R.drawable.ic_action_place);
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(getUrl()));
addTab(intent, R.string.tab_browser, R.drawable.ic_action_web_site);
@ -122,6 +122,9 @@ public class ShareActivity extends FragmentActivity implements ActionBar.TabList
setupShareIntent(intent.getStringExtra("shareString"));
}
// show portal name as action bar title, if available
if (mTitle != getString(R.string.app_name)) actionBar.setTitle(mTitle);
mViewPager = (ViewPager) findViewById(R.id.pager);
mViewPager.setAdapter(mFragmentAdapter);