mirror of
https://github.com/moparisthebest/Conversations
synced 2024-12-25 00:48:52 -05:00
skip empty lines in message preview. prevents indexoutofbounds exception
This commit is contained in:
parent
d03c431137
commit
28c64c2bd1
@ -201,6 +201,9 @@ public class UIHelper {
|
||||
char first = l.charAt(0);
|
||||
if (first != '>' && first != '\u00bb') {
|
||||
String line = l.trim();
|
||||
if (line.isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
char last = line.charAt(line.length()-1);
|
||||
if (builder.length() != 0) {
|
||||
builder.append(' ');
|
||||
|
Loading…
Reference in New Issue
Block a user