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

Commit fe2c6a4b authored by Alexandre Roux's avatar Alexandre Roux
Browse files

notifications wouldn't work for gmail accounts added from account manager...

notifications wouldn't work for gmail accounts added from account manager because no name was set : fixed
parent 021cef52
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -672,6 +672,11 @@ public class Accounts extends K9ListActivity implements OnItemClickListener {
                boolean accountIsSignedIn = false;
                for (Account account : accounts) {
                    if (emailId.equals(account.getEmail())) {
                        if(account.getName() == null){ // we need to fix an old bug
                           account.setName(emailId);
                           account.save(Preferences.getPreferences(this));
                        }

                        accountIsSignedIn = true;
                        break;
                    }
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ public class GoogleAccountCreator {
        Preferences preferences = Preferences.getPreferences(context);

        AccountConfigImpl accountConfig = new AccountConfigImpl(preferences);
        accountConfig.setName(emailId);
        accountConfig.setEmail(emailId);
        accountConfig.setDescription(emailId);
        accountConfig.setTrashFolderName("[Gmail]/Trash");