Donate to
e Foundation
|
Murena
handsets with /e/OS | Own a part of Murena!
Learn more
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Mail
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
e
os
Mail
Commits
41bf90c9
Commit
41bf90c9
authored
4 months ago
by
Mohammed Althaf Thayyil
Browse files
Options
Downloads
Patches
Plain Diff
mail: Fix yahoo login for existing users
parent
8e0ba0d9
Branches
Branches containing commit
No related tags found
1 merge request
!170
mail: Fix yahoo login for existing users
Pipeline
#460156
passed
4 months ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/ui/legacy/src/main/java/com/fsck/k9/activity/setup/accountmanager/EeloAccountCreator.java
+14
-3
14 additions, 3 deletions
.../k9/activity/setup/accountmanager/EeloAccountCreator.java
with
14 additions
and
3 deletions
app/ui/legacy/src/main/java/com/fsck/k9/activity/setup/accountmanager/EeloAccountCreator.java
+
14
−
3
View file @
41bf90c9
...
...
@@ -98,8 +98,8 @@ public class EeloAccountCreator {
android
.
accounts
.
Account
[]
openIdAccounts
=
accountManager
.
getAccountsByType
(
accountType
);
for
(
android
.
accounts
.
Account
openIdAccount
:
openIdAccounts
)
{
String
emailId
=
accountManager
.
getUserData
(
openIdAccount
,
AccountManagerConstants
.
ACCOUNT_EMAIL_ADDRESS_KEY
);
final
String
emailId
=
getEmailId
(
accountManager
,
openIdAccount
);
if
(
isInvalidEmail
(
emailId
))
{
continue
;
}
...
...
@@ -149,7 +149,8 @@ public class EeloAccountCreator {
android
.
accounts
.
Account
[]
eeloAccounts
=
accountManager
.
getAccountsByType
(
AccountManagerConstants
.
EELO_ACCOUNT_TYPE
);
for
(
android
.
accounts
.
Account
eeloAccount
:
eeloAccounts
)
{
String
emailId
=
accountManager
.
getUserData
(
eeloAccount
,
AccountManagerConstants
.
ACCOUNT_EMAIL_ADDRESS_KEY
);
final
String
emailId
=
getEmailId
(
accountManager
,
eeloAccount
);
if
(
isInvalidEmail
(
emailId
))
{
continue
;
}
...
...
@@ -176,6 +177,16 @@ public class EeloAccountCreator {
}
}
private
static
String
getEmailId
(
AccountManager
accountManager
,
android
.
accounts
.
Account
account
)
{
String
emailId
=
accountManager
.
getUserData
(
account
,
AccountManagerConstants
.
ACCOUNT_EMAIL_ADDRESS_KEY
);
if
(
emailId
==
null
||
emailId
.
equals
(
"null"
)
||
emailId
.
isBlank
())
{
return
account
.
name
;
}
return
emailId
;
}
@RequiresApi
(
api
=
VERSION_CODES
.
N
)
private
static
void
deleteIncompleteAccounts
(
List
<
Account
>
accounts
,
BackgroundAccountRemover
accountRemover
)
{
accounts
.
stream
().
filter
(
account
->
!
account
.
isFinishedSetup
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment