Skip to content

Commit e7f3750

Browse files
AndrianaBilaliProfpatsch
authored andcommitted
Fix timestamps not working in comment replies
Use LinkMovementMethodCompat for comment links Co-authored-by: Isira Seneviratne <[email protected]> Update import Use LongPressLinkMovementMethod
1 parent 48e826e commit e7f3750

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/org/schabi/newpipe/fragments/list/comments/CommentRepliesFragment.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.schabi.newpipe.util.image.ImageStrategy;
2929
import org.schabi.newpipe.util.image.PicassoHelper;
3030
import org.schabi.newpipe.util.text.TextLinkifier;
31+
import org.schabi.newpipe.util.text.LongPressLinkMovementMethod;
3132

3233
import java.util.Queue;
3334
import java.util.function.Supplier;
@@ -110,7 +111,7 @@ protected Supplier<View> getListHeaderSupplier() {
110111
TextLinkifier.fromDescription(binding.commentContent, item.getCommentText(),
111112
HtmlCompat.FROM_HTML_MODE_LEGACY, getServiceById(item.getServiceId()),
112113
item.getUrl(), disposables, null);
113-
114+
binding.commentContent.setMovementMethod(LongPressLinkMovementMethod.getInstance());
114115
return binding.getRoot();
115116
};
116117
}

0 commit comments

Comments
 (0)