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:
parent
2d80959e37
commit
5a38cf523a
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue