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:
parent
777b706dbc
commit
7a5e3b48b7
@ -240,7 +240,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
|||||||
} else {
|
} else {
|
||||||
AdapterContextMenuInfo info = (AdapterContextMenuInfo)menuInfo;
|
AdapterContextMenuInfo info = (AdapterContextMenuInfo)menuInfo;
|
||||||
Article article = getArticleAtPosition(info.position);
|
Article article = getArticleAtPosition(info.position);
|
||||||
menu.setHeaderTitle(article.title);
|
menu.setHeaderTitle(Html.fromHtml(article.title));
|
||||||
menu.setGroupVisible(R.id.menu_group_single_article, true);
|
menu.setGroupVisible(R.id.menu_group_single_article, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user