aboutsummaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorYraFyra <yrafyra@gmail.com>2012-10-30 23:03:28 +0100
committerYraFyra <yrafyra@gmail.com>2012-10-30 23:03:28 +0100
commite6c6033d2d22bf546ff193445943743f2885acd3 (patch)
tree8f473ed524188f3e04f85fb044d52c3fa0913324 /main/src
parent9631adf2e99100ca494bb7992bd3f426848d8404 (diff)
downloadcgeo-e6c6033d2d22bf546ff193445943743f2885acd3.zip
cgeo-e6c6033d2d22bf546ff193445943743f2885acd3.tar.gz
cgeo-e6c6033d2d22bf546ff193445943743f2885acd3.tar.bz2
Allow html in trackable description
I recently looked at TB426DR and realized that cgeo didn't show the strike over that is shown in normal browser. Maybe there are more descriptions etc that should allow html...???
Diffstat (limited to 'main/src')
-rw-r--r--main/src/cgeo/geocaching/cgeotrackable.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgeotrackable.java b/main/src/cgeo/geocaching/cgeotrackable.java
index ccc09a4..93b410a 100644
--- a/main/src/cgeo/geocaching/cgeotrackable.java
+++ b/main/src/cgeo/geocaching/cgeotrackable.java
@@ -9,6 +9,7 @@ import cgeo.geocaching.ui.CacheDetailsCreator;
import cgeo.geocaching.ui.Formatter;
import cgeo.geocaching.utils.BaseUtils;
import cgeo.geocaching.utils.Log;
+import cgeo.geocaching.utils.UnknownTagsHandler;
import org.apache.commons.lang3.StringUtils;
@@ -183,7 +184,7 @@ public class cgeotrackable extends AbstractActivity {
findViewById(R.id.details_box).setVisibility(View.VISIBLE);
TextView descView = (TextView) findViewById(R.id.details);
descView.setVisibility(View.VISIBLE);
- descView.setText(Html.fromHtml(trackable.getDetails(), new HtmlImage(geocode, true, 0, false), null), TextView.BufferType.SPANNABLE);
+ descView.setText(Html.fromHtml(trackable.getDetails(), new HtmlImage(geocode, true, 0, false), new UnknownTagsHandler()), TextView.BufferType.SPANNABLE);
descView.setMovementMethod(LinkMovementMethod.getInstance());
}