pull/172/head
M66B 5 years ago
parent 555034cbcf
commit d66074790e

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

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

Loading…
Cancel
Save