1
0
Fork 1

remove two random letters

This commit is contained in:
Arne 2024-03-24 22:04:22 +01:00
parent 0b4b617988
commit ddc2f0a7e6

View file

@ -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);