Fix carriage return replace in chat
This commit is contained in:
parent
168ae3f4d7
commit
12d7c1e652
1 changed files with 3 additions and 0 deletions
|
@ -1424,6 +1424,9 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
|
||||||
if (text.contains(">")) {
|
if (text.contains(">")) {
|
||||||
text = text.replace(">", ">");
|
text = text.replace(">", ">");
|
||||||
}
|
}
|
||||||
|
if (text.contains("\n")) {
|
||||||
|
text = text.replace("\n", "<br>");
|
||||||
|
}
|
||||||
if (text.contains("http://")) {
|
if (text.contains("http://")) {
|
||||||
int indexHttp = text.indexOf("http://");
|
int indexHttp = text.indexOf("http://");
|
||||||
int indexFinHttp = text.indexOf(" ", indexHttp) == -1 ? text.length() : text.indexOf(" ", indexHttp);
|
int indexFinHttp = text.indexOf(" ", indexHttp) == -1 ? text.length() : text.indexOf(" ", indexHttp);
|
||||||
|
|
Loading…
Reference in a new issue