new actionbar title for permalink
This commit is contained in:
parent
18afab9952
commit
58b85e4c24
@ -267,11 +267,11 @@ window.androidCopy = function(text) {
|
||||
}
|
||||
|
||||
window.androidPermalink = function() {
|
||||
if(typeof android === 'undefined' || !android || !android.copy)
|
||||
if(typeof android === 'undefined' || !android || !android.intentPosLink)
|
||||
return true; // i.e. execute other actions
|
||||
|
||||
var center = map.getCenter();
|
||||
android.intentPosLink(center.lat, center.lng, map.getZoom(), "Intel Map", false);
|
||||
android.intentPosLink(center.lat, center.lng, map.getZoom(), "Selected map view", false);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -116,15 +116,13 @@ public class ShareActivity extends FragmentActivity implements ActionBar.TabList
|
||||
mZoom = intent.getIntExtra("zoom", 0);
|
||||
mIsPortal = intent.getBooleanExtra("isPortal", false);
|
||||
|
||||
actionBar.setTitle(mTitle);
|
||||
setupIntents();
|
||||
} else {
|
||||
mTitle = getString(R.string.app_name);
|
||||
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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user