Add related identity

This commit is contained in:
M66B
2019-10-19 20:56:19 +02:00
parent fe76880dc5
commit 3cf2c89708
4 changed files with 43 additions and 7 deletions

View File

@@ -123,6 +123,7 @@ public class FragmentIdentity extends FragmentBase {
private long id = -1;
private long copy = -1;
private long account = -1;
private int auth = MailService.AUTH_TYPE_PASSWORD;
private boolean saving = false;
@@ -141,6 +142,8 @@ public class FragmentIdentity extends FragmentBase {
copy = args.getLong("id", -1);
else
id = args.getLong("id", -1);
account = args.getLong("account", -1);
}
@Override
@@ -965,8 +968,9 @@ public class FragmentIdentity extends FragmentBase {
spAccount.setSelection(0);
for (int pos = 0; pos < accounts.size(); pos++) {
EntityAccount account = accounts.get(pos);
if (account.id.equals((identity == null ? -1 : identity.account))) {
spAccount.setTag(pos);
if (account.id.equals(identity == null ? FragmentIdentity.this.account : identity.account)) {
if (identity != null)
spAccount.setTag(pos);
spAccount.setSelection(pos);
break;
}