mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 16:22:53 +00:00
Bug 776950 - Use displayname for homescreen shortcuts. r=margaret
This commit is contained in:
parent
4bf3dc310a
commit
15bb87c600
@ -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(), "");
|
||||
|
Loading…
x
Reference in New Issue
Block a user