Updated / account type

This commit is contained in:
M66B
2022-04-17 14:04:00 +02:00
parent 49d8a0167b
commit 43ab783ac3
4 changed files with 13 additions and 13 deletions

View File

@@ -456,7 +456,9 @@ public class FragmentGmail extends FragmentBase {
if (args.getBoolean("update")) {
List<EntityAccount> accounts =
db.account().getAccounts(user, new int[]{AUTH_TYPE_GMAIL, AUTH_TYPE_PASSWORD});
db.account().getAccounts(user,
EntityAccount.TYPE_IMAP,
new int[]{AUTH_TYPE_GMAIL, AUTH_TYPE_PASSWORD});
if (accounts != null && accounts.size() == 1)
update = accounts.get(0);
}