From 86a698b40a82d332dc98e850584b69aa8f176b94 Mon Sep 17 00:00:00 2001 From: Mark Capella Date: Thu, 25 Jul 2013 08:59:44 -0400 Subject: [PATCH] Bug 897764 - [fig] Reading List context menu Open in New Tab opens normal page vs. readermode, r=lucasr --- mobile/android/base/home/HomeFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mobile/android/base/home/HomeFragment.java b/mobile/android/base/home/HomeFragment.java index 3531a588983..0197d2480e9 100644 --- a/mobile/android/base/home/HomeFragment.java +++ b/mobile/android/base/home/HomeFragment.java @@ -13,6 +13,7 @@ import org.mozilla.gecko.Tabs; import org.mozilla.gecko.db.BrowserDB; import org.mozilla.gecko.gfx.BitmapUtils; import org.mozilla.gecko.home.HomeListView.HomeContextMenuInfo; +import org.mozilla.gecko.ReaderModeUtils; import org.mozilla.gecko.util.ThreadUtils; import org.mozilla.gecko.util.UiAsyncTask; @@ -129,7 +130,8 @@ class HomeFragment extends Fragment { if (item.getItemId() == R.id.home_open_private_tab) flags |= Tabs.LOADURL_PRIVATE; - Tabs.getInstance().loadUrl(info.url, flags); + final String url = (info.inReadingList ? ReaderModeUtils.getAboutReaderForUrl(info.url, true) : info.url); + Tabs.getInstance().loadUrl(url, flags); Toast.makeText(activity, R.string.new_tab_opened, Toast.LENGTH_SHORT).show(); return true; }