show portal title in share activity
This commit is contained in:
parent
90cb29a58b
commit
aab1616df0
BIN
mobile/res/drawable-hdpi/ic_action_place.png
Normal file
BIN
mobile/res/drawable-hdpi/ic_action_place.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 555 B |
BIN
mobile/res/drawable-mdpi/ic_action_place.png
Normal file
BIN
mobile/res/drawable-mdpi/ic_action_place.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 393 B |
BIN
mobile/res/drawable-xhdpi/ic_action_place.png
Normal file
BIN
mobile/res/drawable-xhdpi/ic_action_place.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 712 B |
BIN
mobile/res/drawable-xxhdpi/ic_action_place.png
Normal file
BIN
mobile/res/drawable-xxhdpi/ic_action_place.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 958 B |
@ -150,9 +150,9 @@
|
||||
<string name="msg_copied">Copied to clipboard…</string>
|
||||
<string name="notice_do_not_show_again">Do not show again</string>
|
||||
|
||||
<string name="tab_map">Map</string>
|
||||
<string name="tab_map">Locate</string>
|
||||
<string name="tab_share">Share</string>
|
||||
<string name="tab_browser">Browser</string>
|
||||
<string name="tab_browser">Intel</string>
|
||||
|
||||
<string name="label_highlighter">Highlighter</string>
|
||||
<string name="label_base_layer">Base Layer</string>
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user