Skip to content

Commit

Permalink
crash fix when click on empty comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pratyaksh1610 committed Feb 10, 2023
1 parent e0cb289 commit 8a62c21
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ public void updateFromItem(final InfoItem infoItem,
}

itemView.setOnClickListener(view -> {
toggleEllipsize();
if (!itemContentView.getText().toString().isEmpty()) {
toggleEllipsize();
}
if (itemBuilder.getOnCommentsSelectedListener() != null) {
itemBuilder.getOnCommentsSelectedListener().selected(item);
}
Expand Down

0 comments on commit 8a62c21

Please sign in to comment.