Fixed reload after save account/identity

This commit is contained in:
M66B
2018-11-19 05:32:37 +01:00
parent 13d655d4a9
commit a36cd063cc
3 changed files with 4 additions and 3 deletions

View File

@@ -656,6 +656,7 @@ public class FragmentAccount extends FragmentEx {
boolean check = (synchronize && (account == null ||
!host.equals(account.host) || Integer.parseInt(port) != account.port ||
!user.equals(account.user) || !password.equals(account.password)));
boolean reload = (account == null || account.synchronize != synchronize || check);
// Check IMAP server
if (check) {
@@ -770,7 +771,7 @@ public class FragmentAccount extends FragmentEx {
db.endTransaction();
}
if (check)
if (reload)
ServiceSynchronize.reload(getContext(), "save account");
return null;