mirror of https://github.com/M66B/FairEmail.git
Fix
This commit is contained in:
parent
19a407cf31
commit
a21b4b03af
|
@ -1725,6 +1725,8 @@ 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);
|
||||
onOpenLink(uri);
|
||||
return true;
|
||||
}
|
||||
|
@ -1768,11 +1770,7 @@ 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;
|
||||
if (TextUtils.isEmpty(uri.getScheme()))
|
||||
host = Uri.parse("https://" + uri.toString()).getHost();
|
||||
else
|
||||
host = uri.getHost();
|
||||
String host = uri.getHost();
|
||||
return (TextUtils.isEmpty(host) ? null : Helper.getOrganization(host));
|
||||
}
|
||||
|
||||
|
|
|
@ -630,7 +630,6 @@ public class FragmentMessages extends FragmentBase {
|
|||
if (!Helper.getNetworkState(context).isSuitable())
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_no_internet));
|
||||
|
||||
|
||||
DB db = DB.getInstance(context);
|
||||
try {
|
||||
db.beginTransaction();
|
||||
|
|
Loading…
Reference in New Issue