From 07f8dcb3ca1af4840d31754edb5331ecc652c24d Mon Sep 17 00:00:00 2001 From: yausername <13ritvik@gmail.com> Date: Fri, 22 Mar 2019 05:56:56 +0530 Subject: [PATCH] use ellipsis character --- .../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 78eb06ea4..b726a40c6 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 @@ -118,9 +118,9 @@ public class CommentsMiniInfoItemHolder extends InfoItemHolder { private void ellipsize() { if (itemContentView.getLineCount() > commentDefaultLines){ int endOfLastLine = itemContentView.getLayout().getLineEnd(commentDefaultLines - 1); - int end = itemContentView.getText().toString().lastIndexOf(' ', endOfLastLine -3); - if(end == -1) end = Math.max(endOfLastLine -3, 0); - String newVal = itemContentView.getText().subSequence(0, end) + "..."; + int end = itemContentView.getText().toString().lastIndexOf(' ', endOfLastLine -2); + if(end == -1) end = Math.max(endOfLastLine -2, 0); + String newVal = itemContentView.getText().subSequence(0, end) + " …"; itemContentView.setText(newVal); } linkify();