Bug 1175581 - Copying link from reader mode returns content link. r=margaret

This commit is contained in:
Sergej Kravcenko
2015-07-09 19:11:39 +03:00
parent 945e0b88df
commit b7facff033
3 changed files with 13 additions and 15 deletions

View File

@@ -36,6 +36,15 @@ public class ReaderModeUtils {
return getAboutReaderForUrl(url, -1);
}
public static String stripAboutReaderUrl(String url) {
if (!AboutPages.isAboutReader(url)) {
return url;
}
final String strippedUrl = getUrlFromAboutReader(url);
return strippedUrl != null ? strippedUrl : url;
}
public static String getAboutReaderForUrl(String url, int tabId) {
String aboutReaderUrl = AboutPages.READER + "?url=" + Uri.encode(url);