From 1047158a6656079c745ff14fb859d98490a5728c Mon Sep 17 00:00:00 2001 From: devlearner Date: Tue, 4 Oct 2022 17:31:35 +0800 Subject: [PATCH] Fix potential cast exception when casting to `Spannable` in `CommentTextOnTouchListener` --- .../newpipe/info_list/holder/CommentsMiniInfoItemHolder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/info_list/holder/CommentsMiniInfoItemHolder.java b/app/src/main/java/org/schabi/newpipe/info_list/holder/CommentsMiniInfoItemHolder.java index b900750a8..0fd0203d4 100644 --- a/app/src/main/java/org/schabi/newpipe/info_list/holder/CommentsMiniInfoItemHolder.java +++ b/app/src/main/java/org/schabi/newpipe/info_list/holder/CommentsMiniInfoItemHolder.java @@ -115,7 +115,7 @@ public class CommentsMiniInfoItemHolder extends InfoItemHolder { itemContentView.setLines(COMMENT_DEFAULT_LINES); commentText = item.getCommentText(); - itemContentView.setText(commentText); + itemContentView.setText(commentText, TextView.BufferType.SPANNABLE); itemContentView.setOnTouchListener(CommentTextOnTouchListener.INSTANCE); if (itemContentView.getLineCount() == 0) {