mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-12 06:52:25 +00:00
Bug 897822 - [fig] Pages open in readermode dont display proper |Switch to Tab| info in TwoLinePageRow, r=lucasr
This commit is contained in:
parent
d615197498
commit
f90f692e52
@ -7,6 +7,7 @@ package org.mozilla.gecko;
|
||||
|
||||
import org.mozilla.gecko.db.BrowserDB;
|
||||
import org.mozilla.gecko.home.HomePager;
|
||||
import org.mozilla.gecko.ReaderModeUtils;
|
||||
import org.mozilla.gecko.sync.setup.SyncAccounts;
|
||||
import org.mozilla.gecko.util.GeckoEventListener;
|
||||
import org.mozilla.gecko.util.ThreadUtils;
|
||||
@ -589,7 +590,8 @@ public class Tabs implements GeckoEventListener {
|
||||
*/
|
||||
public boolean hasUrl(String url) {
|
||||
for (Tab tab : mOrder) {
|
||||
if (TextUtils.equals(tab.getURL(), url)) {
|
||||
if (TextUtils.equals(tab.getURL(), url) ||
|
||||
TextUtils.equals(ReaderModeUtils.getUrlFromAboutReader(tab.getURL()), url)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user