remove two random letters
This commit is contained in:
parent
0b4b617988
commit
ddc2f0a7e6
1 changed files with 5 additions and 7 deletions
|
@ -771,16 +771,14 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (body.toString().startsWith("> https://")) {
|
||||
try {
|
||||
int start = 0;
|
||||
int end = imageurl.length();
|
||||
body = body.replace(start, end, "");
|
||||
} else {
|
||||
int start = imageurl.indexOf("https://");
|
||||
int end = imageurl.length();
|
||||
int end = imageurl.length() + 3;
|
||||
body = body.replace(start, end, "");
|
||||
} catch (Exception e) {
|
||||
Log.d("Error", "Can't replace link");
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
viewHolder.quotedImageBox.setVisibility(GONE);
|
||||
|
|
Loading…
Reference in a new issue