mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-03 15:46:34 +02:00
Refactoring
This commit is contained in:
@@ -1506,15 +1506,16 @@ public class HtmlHelper {
|
||||
a.attr("href", BuildConfig.GPA_URI + group);
|
||||
else {
|
||||
String url = (email ? "mailto:" : "") + group;
|
||||
try {
|
||||
Uri uri = Uri.parse(url);
|
||||
if (outbound)
|
||||
uri = UriHelper.guessScheme(uri);
|
||||
a.attr("href", uri.toString());
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
if (outbound)
|
||||
try {
|
||||
Uri uri = UriHelper.guessScheme(Uri.parse(url));
|
||||
a.attr("href", uri.toString());
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
a.attr("href", url);
|
||||
}
|
||||
else
|
||||
a.attr("href", url);
|
||||
}
|
||||
}
|
||||
a.text(group);
|
||||
span.appendChild(a);
|
||||
|
||||
Reference in New Issue
Block a user