From cb8c919609e2293124a245ebd2833ec1b7c415da Mon Sep 17 00:00:00 2001 From: Coffeemakr Date: Wed, 19 Jul 2017 10:26:26 +0200 Subject: [PATCH] Prevent time links from beeing clicked --- .../schabi/newpipe/fragments/detail/VideoDetailFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java index 7b0db114c..3aeb62f32 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java @@ -23,6 +23,7 @@ import android.text.Html; import android.text.Spanned; import android.text.TextUtils; import android.text.method.LinkMovementMethod; +import android.text.util.Linkify; import android.util.Log; import android.util.TypedValue; import android.view.Gravity; @@ -549,6 +550,7 @@ public class VideoDetailFragment extends BaseFragment implements StreamExtractor relatedStreamExpandButton = ((ImageButton) rootView.findViewById(R.id.detail_related_streams_expand)); actionBarHandler = new ActionBarHandler(activity); + videoDescriptionView.setAutoLinkMask(Linkify.WEB_URLS); videoDescriptionView.setMovementMethod(LinkMovementMethod.getInstance()); infoItemBuilder = new InfoItemBuilder(activity);