Escape HTML from the title of the context menu in HeadlinesFragment. For example, some Engadget feed items may have a title that includes an apostrophe that is encoded as ' and is displayed in this form. Html.fromHtml is invoked on the article title.

This commit is contained in:
Sam Malone 2013-05-08 05:39:18 +01:00
parent 777b706dbc
commit 7a5e3b48b7

View File

@ -240,7 +240,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
} else {
AdapterContextMenuInfo info = (AdapterContextMenuInfo)menuInfo;
Article article = getArticleAtPosition(info.position);
menu.setHeaderTitle(article.title);
menu.setHeaderTitle(Html.fromHtml(article.title));
menu.setGroupVisible(R.id.menu_group_single_article, true);
}