1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 15:11:03 +00:00

Select identity profile on host and port

This commit is contained in:
M66B 2019-07-29 18:22:39 +02:00
parent 2d80959e37
commit 5a38cf523a

View file

@ -922,12 +922,15 @@ public class FragmentIdentity extends FragmentBase {
spProvider.setTag(0);
spProvider.setSelection(0);
if (identity != null)
for (int pos = 1; pos < providers.size(); pos++)
if (providers.get(pos).smtp_host.equals(identity.host)) {
for (int pos = 1; pos < providers.size(); pos++) {
EmailProvider provider = providers.get(pos);
if (provider.smtp_host.equals(identity.host) &&
provider.smtp_port == identity.port) {
spProvider.setTag(pos);
spProvider.setSelection(pos);
break;
}
}
spAccount.setTag(0);
spAccount.setSelection(0);