mirror of https://github.com/M66B/FairEmail.git
Small fix
This commit is contained in:
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…
Reference in New Issue