Check when synchronize is enabled only

This commit is contained in:
M66B 2018-11-11 07:20:32 +00:00
parent d9b59d4896
commit 3a8256de10
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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