Setup improvements

This commit is contained in:
M66B
2018-09-06 07:29:30 +00:00
parent 96df682541
commit 6e66ddcd53
2 changed files with 26 additions and 11 deletions

View File

@@ -730,12 +730,15 @@ public class FragmentAccount extends FragmentEx {
if (savedInstanceState == null) {
if (account != null) {
for (int pos = 2; pos < providers.size(); pos++)
if (providers.get(pos).imap_host.equals(account.host)) {
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) {
spProvider.setTag(pos);
spProvider.setSelection(pos);
break;
}
}
etHost.setText(account.host);
etPort.setText(Long.toString(account.port));
}