Bug 766942 - Set query argument with initial reading list state (r=mfinkle)

This commit is contained in:
Lucas Rocha 2012-08-07 15:23:20 +01:00
parent bac0c2b63d
commit 542366042e
2 changed files with 3 additions and 2 deletions

View File

@ -449,7 +449,8 @@ public final class Tab {
if (!mReaderEnabled)
return;
GeckoApp.mAppContext.loadUrl("about:reader?url=" + Uri.encode(getURL()));
GeckoApp.mAppContext.loadUrl("about:reader?url=" + Uri.encode(getURL()) +
"&readingList=" + (mReadingListItem ? 1 : 0));
}
public void doReload() {

View File

@ -92,7 +92,7 @@ abstract public class AwesomeBarTab {
protected String getReaderForUrl(String url) {
// FIXME: still need to define the final way to open items from
// reading list. For now, we're using an about:reader page.
return "about:reader?url=" + Uri.encode(url);
return "about:reader?url=" + Uri.encode(url) + "&readingList=1";
}
protected void updateFavicon(ImageView faviconView, Cursor cursor) {