aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2012-01-24 21:38:05 +0100
committerBananeweizen <bananeweizen@gmx.de>2012-01-24 21:38:05 +0100
commitbeb7f7be8f127fba5ad333d6c31cefd1596157b6 (patch)
tree8a99b0001f9f95044a4eb1d679424571a76847a5
parenta5c6a6dd79ed24080026568b469a68867f333284 (diff)
downloadcgeo-beb7f7be8f127fba5ad333d6c31cefd1596157b6.zip
cgeo-beb7f7be8f127fba5ad333d6c31cefd1596157b6.tar.gz
cgeo-beb7f7be8f127fba5ad333d6c31cefd1596157b6.tar.bz2
fix #1033: links in TB log don't work
-rw-r--r--main/res/layout/cacheview_logs_item.xml3
-rw-r--r--main/src/cgeo/geocaching/cgeotrackable.java4
2 files changed, 5 insertions, 2 deletions
diff --git a/main/res/layout/cacheview_logs_item.xml b/main/res/layout/cacheview_logs_item.xml
index d9514e9..1d26a54 100644
--- a/main/res/layout/cacheview_logs_item.xml
+++ b/main/res/layout/cacheview_logs_item.xml
@@ -86,6 +86,7 @@
android:gravity="left"
android:padding="3dip"
android:textSize="14dip"
- android:textColor="?text_color" />
+ android:textColor="?text_color"
+ android:autoLink="web" />
</LinearLayout>
</RelativeLayout> \ No newline at end of file
diff --git a/main/src/cgeo/geocaching/cgeotrackable.java b/main/src/cgeo/geocaching/cgeotrackable.java
index ae8c603..74bdca2 100644
--- a/main/src/cgeo/geocaching/cgeotrackable.java
+++ b/main/src/cgeo/geocaching/cgeotrackable.java
@@ -465,7 +465,9 @@ public class cgeotrackable extends AbstractActivity {
});
}
- ((TextView) rowView.findViewById(R.id.log)).setText(Html.fromHtml(log.log, new HtmlImage(cgeotrackable.this, null, false, 0, false), null), TextView.BufferType.SPANNABLE);
+ TextView logView = (TextView) rowView.findViewById(R.id.log);
+ logView.setMovementMethod(LinkMovementMethod.getInstance());
+ logView.setText(Html.fromHtml(log.log, new HtmlImage(cgeotrackable.this, null, false, 0, false), null), TextView.BufferType.SPANNABLE);
((TextView) rowView.findViewById(R.id.author)).setOnClickListener(new userActions());
listView.addView(rowView);