aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/ui/adapter
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-05-29 01:14:45 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-05-29 01:14:45 +0200
commit2c55954ddda1d84a32150b430fe80ff8084612a1 (patch)
tree0385a8091a153e0f6244fe71120c24135d4b3a67 /src/main/java/eu/siacs/conversations/ui/adapter
parentaaf5233efe39e8473c4e616ac256004f627816c8 (diff)
show in ui when text was shortened
Diffstat (limited to 'src/main/java/eu/siacs/conversations/ui/adapter')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java
index 32646a92d..5ba29802d 100644
--- a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java
+++ b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java
@@ -19,7 +19,6 @@ import android.text.style.RelativeSizeSpan;
import android.text.style.StyleSpan;
import android.text.util.Linkify;
import android.util.DisplayMetrics;
-import android.util.Log;
import android.util.Patterns;
import android.view.View;
import android.view.View.OnClickListener;
@@ -311,8 +310,7 @@ public class MessageAdapter extends ArrayAdapter<Message> {
body = message.getMergedBody();
}
if (body.length() > Config.MAX_DISPLAY_MESSAGE_CHARS) {
- Log.d(Config.LOGTAG,"not showing complete message of length "+body.length());
- body = body.substring(0, Config.MAX_DISPLAY_MESSAGE_CHARS);
+ body = body.substring(0, Config.MAX_DISPLAY_MESSAGE_CHARS)+"\u2026";
}
final SpannableString formattedBody = new SpannableString(body);
int i = body.indexOf(Message.MERGE_SEPARATOR);