mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-08 10:03:51 +02:00
Recognize links without protocol
This commit is contained in:
@@ -1768,7 +1768,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
@Override
|
||||
protected String onExecute(Context context, Bundle args) throws Throwable {
|
||||
Uri uri = args.getParcelable("uri");
|
||||
String host = uri.getHost();
|
||||
String host;
|
||||
if (TextUtils.isEmpty(uri.getScheme()))
|
||||
host = Uri.parse("https://" + uri.toString()).getHost();
|
||||
else
|
||||
host = uri.getHost();
|
||||
return (TextUtils.isEmpty(host) ? null : Helper.getOrganization(host));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user