diff --git a/app/src/main/java/org/schabi/newpipe/util/external_communication/TextLinkifier.java b/app/src/main/java/org/schabi/newpipe/util/external_communication/TextLinkifier.java index f4b423e4191..76da096094b 100644 --- a/app/src/main/java/org/schabi/newpipe/util/external_communication/TextLinkifier.java +++ b/app/src/main/java/org/schabi/newpipe/util/external_communication/TextLinkifier.java @@ -15,6 +15,7 @@ import androidx.core.text.HtmlCompat; import org.schabi.newpipe.extractor.Info; +import org.schabi.newpipe.extractor.stream.StreamInfo; import org.schabi.newpipe.util.NavigationHelper; import java.util.regex.Matcher; @@ -258,7 +259,10 @@ public void onClick(@NonNull final View view) { // add click actions on plain text timestamps only for description of contents, // unneeded for meta-info or other TextViews if (relatedInfo != null) { - addClickListenersOnTimestamps(context, textBlockLinked, relatedInfo, disposables); + if (relatedInfo instanceof StreamInfo) { + addClickListenersOnTimestamps(context, textBlockLinked, relatedInfo, + disposables); + } addClickListenersOnHashtags(context, textBlockLinked, relatedInfo); }