Fix potential cast exception

when casting to `Spannable` in `CommentTextOnTouchListener`
pull/9065/head
devlearner 2022-10-04 17:31:35 +08:00 zatwierdzone przez GitHub
rodzic 0c63950429
commit 1047158a66
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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) {