Bug 776950 - Use displayname for homescreen shortcuts. r=margaret

This commit is contained in:
Wes Johnston 2012-07-24 16:47:59 -07:00
parent 4bf3dc310a
commit 15bb87c600

View File

@ -713,7 +713,7 @@ abstract public class GeckoApp
return;
GeckoAppShell.openUriExternal(url, "text/plain", "", "",
Intent.ACTION_SEND, tab.getTitle());
Intent.ACTION_SEND, tab.getDisplayTitle());
}
protected void onSaveInstanceState(Bundle outState) {
@ -2927,7 +2927,7 @@ abstract public class GeckoApp
Tab tab = Tabs.getInstance().getSelectedTab();
if (tab != null) {
String url = tab.getURL();
String title = tab.getTitle();
String title = tab.getDisplayTitle();
BitmapDrawable favicon = (BitmapDrawable)(tab.getFavicon());
if (url != null && title != null) {
GeckoAppShell.createShortcut(title, url, url, favicon == null ? null : favicon.getBitmap(), "");