Browse Source

Fixed editing of custom accounts

main
M66B 6 years ago
parent
commit
ef804f4931
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      app/src/main/java/eu/faircode/email/FragmentAccount.java

+ 6
- 0
app/src/main/java/eu/faircode/email/FragmentAccount.java View File

@ -750,15 +750,21 @@ public class FragmentAccount extends FragmentEx {
if (savedInstanceState == null) {
if (account != null) {
boolean found = false;
for (int pos = 2; pos < providers.size(); pos++) {
Provider provider = providers.get(pos);
if (provider.imap_host.equals(account.host) &&
provider.imap_port == account.port) {
found = true;
spProvider.setTag(pos);
spProvider.setSelection(pos);
break;
}
}
if (!found) {
spProvider.setTag(1);
spProvider.setSelection(1);
}
etHost.setText(account.host);
etPort.setText(Long.toString(account.port));
}


Loading…
Cancel
Save