Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a60702da authored by Sumit Pundir's avatar Sumit Pundir
Browse files

Accounts: do not auto-sync for certain custom server based accounts



Accounts based on non /e/ custom servers are not to be synced because they
most probably lack a mail server in their implementation. So check
whether an /e/ type tagged account is syncable or not and let the mail
app to not crash if it isn't tagged syncable.

Signed-off-by: default avatarSumit Pundir <pundirsumit11@gmail.com>
parent 334977ce
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -663,10 +663,12 @@ public class Accounts extends K9ListActivity implements OnItemClickListener {
                }
                if (!accountIsSignedIn) {
                    String password = accountManager.getPassword(eeloAccount);
		    if (ContentResolver.getIsSyncable(eeloAccount, MAIL_CONTENT_AUTHORITY) > 0) {
                        EeloAccountCreator.createAccount(this, emailId, password);
                        accountWasAdded = true;
		    }
                }
            }

            for (android.accounts.Account googleAccount : googleAccounts) {
                String emailId = accountManager.getUserData(googleAccount,