mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-25 15:10:47 +01:00
Gmail refresh refactoring
This commit is contained in:
@@ -776,7 +776,7 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
|
||||
if (account.auth_type == EmailService.AUTH_TYPE_GMAIL) {
|
||||
AccountManager am = AccountManager.get(context);
|
||||
boolean found = false;
|
||||
for (Account google : am.getAccountsByType("com.google"))
|
||||
for (Account google : am.getAccountsByType(EmailService.TYPE_GOOGLE))
|
||||
if (account.user.equals(google.name)) {
|
||||
found = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user