mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 744981 - Part 1: share should share page title as well as URL. r=mfinkle
This commit is contained in:
parent
c72d4391d6
commit
bc6bbfcb1e
@ -1305,6 +1305,11 @@ public class GeckoAppShell
|
|||||||
shareIntent.putExtra(Intent.EXTRA_TEXT, targetURI);
|
shareIntent.putExtra(Intent.EXTRA_TEXT, targetURI);
|
||||||
shareIntent.putExtra(Intent.EXTRA_SUBJECT, title);
|
shareIntent.putExtra(Intent.EXTRA_SUBJECT, title);
|
||||||
|
|
||||||
|
// Note that EXTRA_TITLE is intended to be used for share dialog
|
||||||
|
// titles. Common usage (e.g., Pocket) suggests that it's sometimes
|
||||||
|
// interpreted as an alternate to EXTRA_SUBJECT, so we include it.
|
||||||
|
shareIntent.putExtra(Intent.EXTRA_TITLE, title);
|
||||||
|
|
||||||
if (mimeType != null && mimeType.length() > 0) {
|
if (mimeType != null && mimeType.length() > 0) {
|
||||||
shareIntent.setType(mimeType);
|
shareIntent.setType(mimeType);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user