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

Commit 12aee8ae authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

mail: Temp fix for yahoo login

parent 595bddfe
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -136,7 +136,11 @@ internal class EeloAccountCreator(context: Context) : KoinComponent {
    ) {
        val accountList = accountManager.getAccountsByType(accountType)
        for (account in accountList) {
            val emailId = accountManager.getUserData(account, AccountManagerConstants.ACCOUNT_EMAIL_ADDRESS_KEY)
            var emailId = accountManager.getUserData(account, AccountManagerConstants.ACCOUNT_EMAIL_ADDRESS_KEY)
            // Temp fix for yahoo login
            if (emailId == "null" || emailId.isNullOrEmpty()) {
                emailId = account.name
            }
            val isInvalidAccount = AccountManagerHelper.isInvalidEmail(emailId) || !AccountManagerHelper.isSyncable(account)
            if (isInvalidAccount) {
                continue