mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Refactoring
This commit is contained in:
@@ -309,9 +309,10 @@ public class FragmentDialogOpenLink extends FragmentDialogBase {
|
||||
String host = uri.getHost();
|
||||
String thost = (uriTitle == null ? null : uriTitle.getHost());
|
||||
|
||||
String puny;
|
||||
String puny = null;
|
||||
try {
|
||||
puny = IDN.toASCII(host);
|
||||
if (host != null)
|
||||
puny = IDN.toASCII(host, IDN.ALLOW_UNASSIGNED);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
puny = host;
|
||||
@@ -322,7 +323,7 @@ public class FragmentDialogOpenLink extends FragmentDialogBase {
|
||||
tvSuspicious.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
etLink.setText(uri.toString());
|
||||
tvSuspicious.setVisibility(View.GONE);
|
||||
tvSuspicious.setVisibility(Helper.isSingleScript(host) ? View.GONE : View.VISIBLE);
|
||||
}
|
||||
|
||||
grpDifferent.setVisibility(
|
||||
|
||||
Reference in New Issue
Block a user