1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-29 11:15:51 +00:00

Save EML to IMAP accounts only

This commit is contained in:
M66B 2020-04-13 17:42:48 +02:00
parent 1301dcce2a
commit 036ade816a

View file

@ -376,7 +376,9 @@ public class ActivityEML extends ActivityBase {
protected void onExecuted(Bundle args, List<EntityAccount> accounts) {
ArrayAdapter<EntityAccount> adapter =
new ArrayAdapter<>(ActivityEML.this, R.layout.spinner_item1, android.R.id.text1);
adapter.addAll(accounts);
for (EntityAccount account : accounts)
if (account.protocol == EntityAccount.TYPE_IMAP)
adapter.add(account);
new AlertDialog.Builder(ActivityEML.this)
.setTitle(R.string.title_save_eml)