mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 00:53:26 +02:00
Prevent crash
This commit is contained in:
@@ -65,6 +65,9 @@ public class FragmentDialogInsertLink extends FragmentDialogBase {
|
||||
|
||||
@Override
|
||||
public void afterTextChanged(Editable editable) {
|
||||
if (tvInsecure == null)
|
||||
return;
|
||||
|
||||
Uri uri = Uri.parse(editable.toString());
|
||||
tvInsecure.setVisibility(!uri.isOpaque() &&
|
||||
"http".equals(uri.getScheme()) ? View.VISIBLE : View.GONE);
|
||||
|
||||
Reference in New Issue
Block a user