inverted if-else statement
This commit is contained in:
parent
eaf2330678
commit
825db7422a
1 changed files with 3 additions and 3 deletions
|
|
@ -126,10 +126,10 @@ public class CommentsMiniInfoItemHolder extends InfoItemHolder {
|
||||||
|
|
||||||
|
|
||||||
itemView.setOnLongClickListener(view -> {
|
itemView.setOnLongClickListener(view -> {
|
||||||
if (!AndroidTvUtils.isTv(itemBuilder.getContext())) {
|
if (AndroidTvUtils.isTv(itemBuilder.getContext())) {
|
||||||
ShareUtils.copyToClipboard(itemBuilder.getContext(), commentText);
|
|
||||||
} else {
|
|
||||||
openCommentAuthor(item);
|
openCommentAuthor(item);
|
||||||
|
} else {
|
||||||
|
ShareUtils.copyToClipboard(itemBuilder.getContext(), commentText);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue