1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-10 12:00:03 +00:00

Fix potential cast exception

when casting to `Spannable` in `CommentTextOnTouchListener`
This commit is contained in:
devlearner 2022-10-04 17:31:35 +08:00 committed by GitHub
parent 0c63950429
commit 1047158a66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,7 @@ public class CommentsMiniInfoItemHolder extends InfoItemHolder {
itemContentView.setLines(COMMENT_DEFAULT_LINES); itemContentView.setLines(COMMENT_DEFAULT_LINES);
commentText = item.getCommentText(); commentText = item.getCommentText();
itemContentView.setText(commentText); itemContentView.setText(commentText, TextView.BufferType.SPANNABLE);
itemContentView.setOnTouchListener(CommentTextOnTouchListener.INSTANCE); itemContentView.setOnTouchListener(CommentTextOnTouchListener.INSTANCE);
if (itemContentView.getLineCount() == 0) { if (itemContentView.getLineCount() == 0) {