From d66074790ea9193c9d24c5621ccdbfd9c133449c Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 8 Jan 2020 08:52:08 +0100 Subject: [PATCH] Small fix --- app/src/main/java/eu/faircode/email/FragmentAccount.java | 2 +- app/src/main/java/eu/faircode/email/FragmentIdentity.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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))