From 1b610bb20b363a3b11dc27ca716f2ce78e2f2bdb Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 22 Jan 2023 20:22:26 +0100 Subject: [PATCH] Cloud sync: no Gmail/Android accounts --- app/src/main/java/eu/faircode/email/CloudSync.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/CloudSync.java b/app/src/main/java/eu/faircode/email/CloudSync.java index 9c1ae3dbf9..b20b81a0ee 100644 --- a/app/src/main/java/eu/faircode/email/CloudSync.java +++ b/app/src/main/java/eu/faircode/email/CloudSync.java @@ -183,7 +183,8 @@ public class CloudSync { List accounts = db.account().getAccounts(); if (accounts != null) for (EntityAccount account : accounts) - if (account.synchronize && !TextUtils.isEmpty(account.uuid)) { + if (account.synchronize && !TextUtils.isEmpty(account.uuid) && + account.auth_type != ServiceAuthenticator.AUTH_TYPE_GMAIL) { EntityAccount aexisting = null; File afile = new File(dir, "account." + account.uuid + ".json"); if (afile.exists()) @@ -252,7 +253,8 @@ public class CloudSync { JSONArray jaccountuuidlist = new JSONArray(); for (EntityAccount account : accounts) - if (account.synchronize && !TextUtils.isEmpty(account.uuid)) { + if (account.synchronize && !TextUtils.isEmpty(account.uuid) && + account.auth_type != ServiceAuthenticator.AUTH_TYPE_GMAIL) { jaccountuuidlist.put(account.uuid); JSONArray jidentitieuuids = new JSONArray();