Refactoring

This commit is contained in:
M66B
2019-09-02 08:30:13 +02:00
parent 4d5794a51b
commit 03f97c7e3b
3 changed files with 17 additions and 9 deletions

View File

@@ -934,7 +934,7 @@ public class FragmentAccount extends FragmentBase {
List<EntityIdentity> identities = db.identity().getIdentities(account.id);
for (EntityIdentity identity : identities)
if (identity.password.equals(account.password) &&
Helper.getTld(identity.host).equals(Helper.getTld(account.host))) {
ConnectionHelper.isSameDomain(identity.host, account.host)) {
Log.i("Changing identity password host=" + identity.host);
identity.password = password;
db.identity().updateIdentity(identity);