Merge pull request #633 from coffeemakr/fix-time-links

Prevent "time links" from beeing clicked
This commit is contained in:
Christian Schabesberger 2017-07-19 11:38:07 +02:00 committed by GitHub
commit 5b5cb78595
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ import android.text.Html;
import android.text.Spanned; import android.text.Spanned;
import android.text.TextUtils; import android.text.TextUtils;
import android.text.method.LinkMovementMethod; import android.text.method.LinkMovementMethod;
import android.text.util.Linkify;
import android.util.Log; import android.util.Log;
import android.util.TypedValue; import android.util.TypedValue;
import android.view.Gravity; 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)); relatedStreamExpandButton = ((ImageButton) rootView.findViewById(R.id.detail_related_streams_expand));
actionBarHandler = new ActionBarHandler(activity); actionBarHandler = new ActionBarHandler(activity);
videoDescriptionView.setAutoLinkMask(Linkify.WEB_URLS);
videoDescriptionView.setMovementMethod(LinkMovementMethod.getInstance()); videoDescriptionView.setMovementMethod(LinkMovementMethod.getInstance());
infoItemBuilder = new InfoItemBuilder(activity); infoItemBuilder = new InfoItemBuilder(activity);