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

Commit 2d1a093d authored by Alexandre Roux's avatar Alexandre Roux
Browse files

don't add /e/ account when id isn't a mail, for example for custom nextcloud servers

parent fe2c6a4b
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -652,6 +652,8 @@ public class Accounts extends K9ListActivity implements OnItemClickListener {
            for (android.accounts.Account eeloAccount : eeloAccounts) {
                String emailId = accountManager.getUserData(eeloAccount,
                        ACCOUNT_EMAIL_ADDRESS_KEY);
                if(!emailId.contains("@"))
                    continue;
                boolean accountIsSignedIn = false;
                for (Account account : accounts) {
                    if (emailId.equals(account.getEmail())) {