diff --git a/app/src/main/java/eu/faircode/email/FragmentAccount.java b/app/src/main/java/eu/faircode/email/FragmentAccount.java index 5488e57b90..ff21f996fd 100644 --- a/app/src/main/java/eu/faircode/email/FragmentAccount.java +++ b/app/src/main/java/eu/faircode/email/FragmentAccount.java @@ -1213,7 +1213,7 @@ public class FragmentAccount extends FragmentBase { if (account == null) return null; - AccountManager am = AccountManager.get(getContext()); + AccountManager am = AccountManager.get(context); Account[] accounts = am.getAccountsByType("com.google"); for (Account google : accounts) if (account.user.equals(google.name)) diff --git a/app/src/main/java/eu/faircode/email/FragmentIdentity.java b/app/src/main/java/eu/faircode/email/FragmentIdentity.java index 624d784aa7..28ee46cf89 100644 --- a/app/src/main/java/eu/faircode/email/FragmentIdentity.java +++ b/app/src/main/java/eu/faircode/email/FragmentIdentity.java @@ -888,7 +888,7 @@ public class FragmentIdentity extends FragmentBase { if (identity == null) return null; - AccountManager am = AccountManager.get(getContext()); + AccountManager am = AccountManager.get(context); Account[] accounts = am.getAccountsByType("com.google"); for (Account google : accounts) if (identity.user.equals(google.name))