mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 05:44:51 +02:00
Gmail refresh refactoring
This commit is contained in:
@@ -987,12 +987,12 @@ public class FragmentIdentity extends FragmentBase {
|
||||
return null;
|
||||
|
||||
AccountManager am = AccountManager.get(context);
|
||||
Account[] accounts = am.getAccountsByType("com.google");
|
||||
Account[] accounts = am.getAccountsByType(EmailService.TYPE_GOOGLE);
|
||||
for (Account google : accounts)
|
||||
if (identity.user.equals(google.name))
|
||||
return am.blockingGetAuthToken(
|
||||
google,
|
||||
EmailService.getAuthTokenType("com.google"),
|
||||
EmailService.getAuthTokenType(EmailService.TYPE_GOOGLE),
|
||||
true);
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user