Small fix

This commit is contained in:
M66B 2020-01-08 08:52:08 +01:00
parent 555034cbcf
commit d66074790e
2 changed files with 2 additions and 2 deletions

View File

@ -1213,7 +1213,7 @@ public class FragmentAccount extends FragmentBase {
if (account == null) if (account == null)
return null; return null;
AccountManager am = AccountManager.get(getContext()); AccountManager am = AccountManager.get(context);
Account[] accounts = am.getAccountsByType("com.google"); Account[] accounts = am.getAccountsByType("com.google");
for (Account google : accounts) for (Account google : accounts)
if (account.user.equals(google.name)) if (account.user.equals(google.name))

View File

@ -888,7 +888,7 @@ public class FragmentIdentity extends FragmentBase {
if (identity == null) if (identity == null)
return null; return null;
AccountManager am = AccountManager.get(getContext()); AccountManager am = AccountManager.get(context);
Account[] accounts = am.getAccountsByType("com.google"); Account[] accounts = am.getAccountsByType("com.google");
for (Account google : accounts) for (Account google : accounts)
if (identity.user.equals(google.name)) if (identity.user.equals(google.name))