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

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