mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 03:32:15 -05:00
show in ui when text was shortened
This commit is contained in:
parent
aaf5233efe
commit
2c55954ddd
@ -76,7 +76,7 @@ public final class Config {
|
|||||||
|
|
||||||
public static final int REFRESH_UI_INTERVAL = 500;
|
public static final int REFRESH_UI_INTERVAL = 500;
|
||||||
|
|
||||||
public static final int MAX_DISPLAY_MESSAGE_CHARS = 2 * 1024;
|
public static final int MAX_DISPLAY_MESSAGE_CHARS = 4096;
|
||||||
|
|
||||||
public static final boolean DISABLE_PROXY_LOOKUP = false; //useful to debug ibb
|
public static final boolean DISABLE_PROXY_LOOKUP = false; //useful to debug ibb
|
||||||
public static final boolean DISABLE_HTTP_UPLOAD = false;
|
public static final boolean DISABLE_HTTP_UPLOAD = false;
|
||||||
|
@ -19,7 +19,6 @@ import android.text.style.RelativeSizeSpan;
|
|||||||
import android.text.style.StyleSpan;
|
import android.text.style.StyleSpan;
|
||||||
import android.text.util.Linkify;
|
import android.text.util.Linkify;
|
||||||
import android.util.DisplayMetrics;
|
import android.util.DisplayMetrics;
|
||||||
import android.util.Log;
|
|
||||||
import android.util.Patterns;
|
import android.util.Patterns;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.View.OnClickListener;
|
import android.view.View.OnClickListener;
|
||||||
@ -311,8 +310,7 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
|||||||
body = message.getMergedBody();
|
body = message.getMergedBody();
|
||||||
}
|
}
|
||||||
if (body.length() > Config.MAX_DISPLAY_MESSAGE_CHARS) {
|
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)+"\u2026";
|
||||||
body = body.substring(0, Config.MAX_DISPLAY_MESSAGE_CHARS);
|
|
||||||
}
|
}
|
||||||
final SpannableString formattedBody = new SpannableString(body);
|
final SpannableString formattedBody = new SpannableString(body);
|
||||||
int i = body.indexOf(Message.MERGE_SEPARATOR);
|
int i = body.indexOf(Message.MERGE_SEPARATOR);
|
||||||
|
Loading…
Reference in New Issue
Block a user