Check on changing insecure

This commit is contained in:
M66B 2019-06-21 20:33:50 +02:00
parent 03ff3d068a
commit 8c2132fc56
2 changed files with 6 additions and 4 deletions

View File

@ -842,11 +842,12 @@ public class FragmentAccount extends FragmentBase {
String accountRealm = (account == null ? null : account.realm);
boolean check = (synchronize && (account == null ||
!account.synchronize || account.error != null ||
!account.synchronize ||
account.insecure != insecure ||
!host.equals(account.host) || Integer.parseInt(port) != account.port ||
!user.equals(account.user) || !password.equals(account.password) ||
!Objects.equals(realm, accountRealm) ||
!TextUtils.isEmpty(account.error)));
account.error != null));
boolean reload = (check || account == null ||
account.synchronize != synchronize ||
account.notify != notify ||

View File

@ -668,12 +668,13 @@ public class FragmentIdentity extends FragmentBase {
String identityRealm = (identity == null ? null : identity.realm);
boolean check = (synchronize && (identity == null ||
!identity.synchronize || identity.error != null ||
!identity.synchronize ||
identity.insecure != insecure ||
!host.equals(identity.host) || Integer.parseInt(port) != identity.port ||
!user.equals(identity.user) || !password.equals(identity.password) ||
!Objects.equals(realm, identityRealm) ||
use_ip != identity.use_ip) ||
!TextUtils.isEmpty(identity.error));
identity.error != null);
Long last_connected = null;
if (identity != null && synchronize == identity.synchronize)