mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 22:32:51 +00:00
Bug 1239503 - Don't include URL when sharing text. r=sebastian
--HG-- extra : commitid : 4QivEmt9TBB extra : rebase_source : ba3a34b94e29ce78f1e70bebbf972486074832bc
This commit is contained in:
parent
12305275ab
commit
dba0a99025
@ -632,13 +632,11 @@ public abstract class GeckoApp
|
||||
onStatePurged();
|
||||
|
||||
} else if ("Share:Text".equals(event)) {
|
||||
String text = message.getString("text");
|
||||
final String text = message.getString("text");
|
||||
final Tab tab = Tabs.getInstance().getSelectedTab();
|
||||
String title = "";
|
||||
if (tab != null) {
|
||||
title = tab.getDisplayTitle();
|
||||
final String url = ReaderModeUtils.stripAboutReaderUrl(tab.getURL());
|
||||
text += "\n\n" + url;
|
||||
}
|
||||
GeckoAppShell.openUriExternal(text, "text/plain", "", "", Intent.ACTION_SEND, title, false);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user