Guess URL scheme

This commit is contained in:
M66B
2021-08-10 16:27:16 +02:00
parent 7c5ffd3508
commit 28b826a22c
2 changed files with 16 additions and 3 deletions

View File

@@ -573,8 +573,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (link.length > 0) {
String url = link[0].getURL();
Uri uri = Uri.parse(url);
if (uri.getScheme() == null)
uri = Uri.parse("https://" + url);
int start = buffer.getSpanStart(link[0]);
int end = buffer.getSpanEnd(link[0]);