Gmail refresh refactoring

This commit is contained in:
M66B
2020-10-25 15:55:27 +01:00
parent 8f33714f6e
commit 63d1e511f3
4 changed files with 29 additions and 21 deletions

View File

@@ -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;