aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2015-02-20 20:06:31 +0100
committerBananeweizen <bananeweizen@gmx.de>2015-02-20 20:06:31 +0100
commit8b9825f059b8037f6cf2fc64b0f41dbc0cb2284c (patch)
treee2b7fbfa1f148f46bea511b49b228efec81b51ca /main/src/cgeo/geocaching
parent45fdd532dd57dc48cab99595db06f40b4ac74114 (diff)
downloadcgeo-8b9825f059b8037f6cf2fc64b0f41dbc0cb2284c.zip
cgeo-8b9825f059b8037f6cf2fc64b0f41dbc0cb2284c.tar.gz
cgeo-8b9825f059b8037f6cf2fc64b0f41dbc0cb2284c.tar.bz2
fix #4628: make personal note links clickable
Diffstat (limited to 'main/src/cgeo/geocaching')
-rw-r--r--main/src/cgeo/geocaching/CacheDetailActivity.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/CacheDetailActivity.java b/main/src/cgeo/geocaching/CacheDetailActivity.java
index d80431f..93f2d31 100644
--- a/main/src/cgeo/geocaching/CacheDetailActivity.java
+++ b/main/src/cgeo/geocaching/CacheDetailActivity.java
@@ -102,6 +102,7 @@ import android.text.Spanned;
import android.text.style.ForegroundColorSpan;
import android.text.style.StrikethroughSpan;
import android.text.style.StyleSpan;
+import android.text.util.Linkify;
import android.util.TypedValue;
import android.view.ContextMenu;
import android.view.Menu;
@@ -2168,6 +2169,7 @@ public class CacheDetailActivity extends AbstractViewPagerActivity<CacheDetailAc
personalNoteView.setText(personalNote, TextView.BufferType.SPANNABLE);
if (StringUtils.isNotBlank(personalNote)) {
personalNoteView.setVisibility(View.VISIBLE);
+ Linkify.addLinks(personalNoteView, Linkify.ALL);
} else {
personalNoteView.setVisibility(View.GONE);
}