mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 11:28:41 +01:00
Prevent crash
This commit is contained in:
@@ -274,11 +274,8 @@ public class FragmentIdentity extends FragmentBase {
|
||||
|
||||
@Override
|
||||
public void afterTextChanged(Editable editable) {
|
||||
String email = editable.toString();
|
||||
if (email.contains("@"))
|
||||
etDomain.setText(email.split("@")[1]);
|
||||
else
|
||||
etDomain.setText(null);
|
||||
String[] email = editable.toString().split("@");
|
||||
etDomain.setText(email.length < 2 ? null : email[1]);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user