diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2015-02-20 20:06:31 +0100 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2015-02-20 20:06:31 +0100 |
commit | 8b9825f059b8037f6cf2fc64b0f41dbc0cb2284c (patch) | |
tree | e2b7fbfa1f148f46bea511b49b228efec81b51ca /main | |
parent | 45fdd532dd57dc48cab99595db06f40b4ac74114 (diff) | |
download | cgeo-8b9825f059b8037f6cf2fc64b0f41dbc0cb2284c.zip cgeo-8b9825f059b8037f6cf2fc64b0f41dbc0cb2284c.tar.gz cgeo-8b9825f059b8037f6cf2fc64b0f41dbc0cb2284c.tar.bz2 |
fix #4628: make personal note links clickable
Diffstat (limited to 'main')
-rw-r--r-- | main/res/values/changelog_master.xml | 1 | ||||
-rw-r--r-- | main/src/cgeo/geocaching/CacheDetailActivity.java | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/main/res/values/changelog_master.xml b/main/res/values/changelog_master.xml index 4b5bf66..a01610e 100644 --- a/main/res/values/changelog_master.xml +++ b/main/res/values/changelog_master.xml @@ -13,6 +13,7 @@ · New: Filter for caches with offline logs\n · New: Allow export of waypoints without coords to Locus\n · New: Confirmation on backup/restore\n + · New: Links in personal notes can be clicked\n · Fix: Don\'t allow logs in the future\n · Fix: Allow shortcut creation for All caches list\n · Fix: Some menus not available when invoking map from compass\n 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); } |