Fix HTML unescaping in title of ArticleFragment.

The title of an article when displayed in the ArticleFragment is HTML escaped, as opposed to being properly un-escaped as in HeadlinesFragment (currently around line 588).

This produces strings with """ instead of the quote character, for example.
This commit is contained in:
Ajay Roopakalu 2013-03-14 20:09:59 -03:00
parent 807add7244
commit 8fb9d746f3

View File

@ -20,6 +20,7 @@ import android.net.Uri;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.v4.app.Fragment;
import android.text.Html;
import android.util.TypedValue;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
@ -87,11 +88,11 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl
String titleStr;
if (m_article.title.length() > 200)
titleStr = m_article.title.substring(0, 200) + "";
titleStr = m_article.title.substring(0, 200) + "<EFBFBD>";
else
titleStr = m_article.title;
title.setText(titleStr);
title.setText(Html.fromHtml(titleStr));
//title.setPaintFlags(title.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
title.setOnClickListener(new OnClickListener() {
@Override