1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-24 16:53:37 +00:00

Fixed editing of custom accounts

This commit is contained in:
M66B 2018-09-07 10:45:43 +00:00
parent a4ca55d7c6
commit ef804f4931

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));
}