зеркало из https://github.com/mozilla/gecko-dev.git
Bug 771610 - Open Reader Mode for Reading List bookmarks. r=margaret
This commit is contained in:
Родитель
92998ad05e
Коммит
d01ac3d639
|
@ -197,7 +197,11 @@ public class BookmarksTab extends AwesomeBarTab {
|
|||
return;
|
||||
}
|
||||
|
||||
listener.onUrlOpen(cursor.getString(cursor.getColumnIndexOrThrow(URLColumns.URL)));
|
||||
String url = cursor.getString(cursor.getColumnIndexOrThrow(URLColumns.URL));
|
||||
if (isInReadingList()) {
|
||||
url = getReaderForUrl(url);
|
||||
}
|
||||
listener.onUrlOpen(url);
|
||||
}
|
||||
|
||||
private class BookmarksListAdapter extends SimpleCursorAdapter {
|
||||
|
@ -381,6 +385,10 @@ public class BookmarksTab extends AwesomeBarTab {
|
|||
return adapter.moveToParentFolder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether the user is in the Reading List bookmarks directory in the
|
||||
* AwesomeScreen UI.
|
||||
*/
|
||||
public boolean isInReadingList() {
|
||||
return mInReadingList;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче