From 59e0c10c4299742f99bee43a478aca36393a57f1 Mon Sep 17 00:00:00 2001 From: adinilfeld Date: Thu, 11 Jun 2020 09:36:05 -0700 Subject: [PATCH] inverted if-else statement --- .../info_list/holder/CommentsMiniInfoItemHolder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 d94762c4d..863273a88 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 @@ -126,10 +126,10 @@ public class CommentsMiniInfoItemHolder extends InfoItemHolder { itemView.setOnLongClickListener(view -> { - if (!AndroidTvUtils.isTv(itemBuilder.getContext())) { - ShareUtils.copyToClipboard(itemBuilder.getContext(), commentText); - } else { + if (AndroidTvUtils.isTv(itemBuilder.getContext())) { openCommentAuthor(item); + } else { + ShareUtils.copyToClipboard(itemBuilder.getContext(), commentText); } return true; });