mirror of https://github.com/M66B/FairEmail.git
Check when synchronize is enabled only
This commit is contained in:
parent
d9b59d4896
commit
3a8256de10
|
@ -673,8 +673,8 @@ public class FragmentAccount extends FragmentEx {
|
|||
DB db = DB.getInstance(context);
|
||||
EntityAccount account = db.account().getAccount(id);
|
||||
|
||||
boolean check = (account == null || (synchronize &&
|
||||
(!host.equals(account.host) || Integer.parseInt(port) != account.port) ||
|
||||
boolean check = (synchronize && (account == null ||
|
||||
!host.equals(account.host) || Integer.parseInt(port) != account.port ||
|
||||
!user.equals(account.user) || !password.equals(account.password)));
|
||||
|
||||
// Check IMAP server
|
||||
|
|
|
@ -412,8 +412,8 @@ public class FragmentIdentity extends FragmentEx {
|
|||
DB db = DB.getInstance(context);
|
||||
EntityIdentity identity = db.identity().getIdentity(id);
|
||||
|
||||
boolean check = (identity == null || (synchronize &&
|
||||
(!host.equals(identity.host) || Integer.parseInt(port) != identity.port) ||
|
||||
boolean check = (synchronize && (identity == null ||
|
||||
!host.equals(identity.host) || Integer.parseInt(port) != identity.port ||
|
||||
!user.equals(identity.user) || !password.equals(identity.password)));
|
||||
|
||||
// Check SMTP server
|
||||
|
|
Loading…
Reference in New Issue